Bug 1635702 [wpt PR 23413] - Move some internal scroll anchoring tests to wpt, a...
[gecko.git] / layout / style / PseudoStyleType.cpp
blob4838570d6179c37addca6b57a63dba96cccdce4a
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/. */
7 #include "PseudoStyleType.h"
9 #include <iostream>
11 namespace mozilla {
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
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
29 case PseudoStyleType::XULTree:
30 case PseudoStyleType::NotPseudo:
31 default:
32 // Output nothing.
33 break;
36 return aStream;
39 }; // namespace mozilla