OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * 1999 Waldo Bastian (bastian@kde.org) | 3 * 1999 Waldo Bastian (bastian@kde.org) |
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 PagePseudoClass // ?? | 122 PagePseudoClass // ?? |
123 }; | 123 }; |
124 | 124 |
125 enum Relation { | 125 enum Relation { |
126 Descendant = 0, // "Space" combinator | 126 Descendant = 0, // "Space" combinator |
127 Child, // > combinator | 127 Child, // > combinator |
128 DirectAdjacent, // + combinator | 128 DirectAdjacent, // + combinator |
129 IndirectAdjacent, // ~ combinator | 129 IndirectAdjacent, // ~ combinator |
130 SubSelector, // "No space" combinator | 130 SubSelector, // "No space" combinator |
131 ShadowPseudo, // Special case of shadow DOM pseudo elements | 131 ShadowPseudo, // Special case of shadow DOM pseudo elements |
132 // FIXME: rename ChildTree and DescendantTree when the spec for this
is written down. | 132 // FIXME: implement named combinator and replace the following /shad
ow/, /shadow-all/ and |
133 ChildTree, // ^ operator for shadow DOM | 133 // /shadow-deep/ with named combinator's implementation. |
134 DescendantTree // ^^ operator for shadow DOM | 134 ShadowAll, |
| 135 ShadowDeep |
135 }; | 136 }; |
136 | 137 |
137 enum PseudoType { | 138 enum PseudoType { |
138 PseudoNotParsed = 0, | 139 PseudoNotParsed = 0, |
139 PseudoUnknown, | 140 PseudoUnknown, |
140 PseudoEmpty, | 141 PseudoEmpty, |
141 PseudoFirstChild, | 142 PseudoFirstChild, |
142 PseudoFirstOfType, | 143 PseudoFirstOfType, |
143 PseudoLastChild, | 144 PseudoLastChild, |
144 PseudoLastOfType, | 145 PseudoLastOfType, |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 if (m_hasRareData) | 515 if (m_hasRareData) |
515 return m_data.m_rareData->m_value; | 516 return m_data.m_rareData->m_value; |
516 // AtomicString is really just a StringImpl* so the cast below is safe. | 517 // AtomicString is really just a StringImpl* so the cast below is safe. |
517 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 518 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
518 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 519 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
519 } | 520 } |
520 | 521 |
521 } // namespace WebCore | 522 } // namespace WebCore |
522 | 523 |
523 #endif // CSSSelector_h | 524 #endif // CSSSelector_h |
OLD | NEW |