tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PseudoStyleType.cpp (1064B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "PseudoStyleType.h"
      8 
      9 #include <ostream>
     10 
     11 namespace mozilla {
     12 
     13 std::ostream& operator<<(std::ostream& aStream, PseudoStyleType aType) {
     14  switch (aType) {
     15 #define CSS_PSEUDO_ELEMENT(_name, _value, _flags) \
     16  case PseudoStyleType::_name:                    \
     17    aStream << _value;                            \
     18    break;
     19 #include "nsCSSPseudoElementList.h"
     20 #undef CSS_PSEUDO_ELEMENT
     21 
     22 #define CSS_ANON_BOX(_name, _str) \
     23  case PseudoStyleType::_name:    \
     24    aStream << _str;              \
     25    break;
     26 #include "nsCSSAnonBoxList.h"
     27 #undef CSS_ANON_BOX
     28 
     29    case PseudoStyleType::XULTree:
     30    case PseudoStyleType::NotPseudo:
     31    default:
     32      // Output nothing.
     33      break;
     34  }
     35 
     36  return aStream;
     37 }
     38 
     39 };  // namespace mozilla