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: implement named combinator and replace the following /shad
ow/, /shadow-all/ and | 132 // FIXME: implement named combinator (i.e. named relation) and |
133 // /shadow-deep/ with named combinator's implementation. | 133 // replace the following /shadow/ and /shadow-deep/ with the impleme
ntation. |
134 ShadowAll, | 134 Shadow, // /shadow/ combinator |
135 ShadowDeep, | 135 ShadowDeep, // /shadow-deep/ combinator |
136 ShadowContent // /content/ for shadow styling | 136 ShadowContent // /content/ for shadow styling |
137 }; | 137 }; |
138 | 138 |
139 enum PseudoType { | 139 enum PseudoType { |
140 PseudoNotParsed = 0, | 140 PseudoNotParsed = 0, |
141 PseudoUnknown, | 141 PseudoUnknown, |
142 PseudoEmpty, | 142 PseudoEmpty, |
143 PseudoFirstChild, | 143 PseudoFirstChild, |
144 PseudoFirstOfType, | 144 PseudoFirstOfType, |
145 PseudoLastChild, | 145 PseudoLastChild, |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 if (m_hasRareData) | 509 if (m_hasRareData) |
510 return m_data.m_rareData->m_value; | 510 return m_data.m_rareData->m_value; |
511 // AtomicString is really just a StringImpl* so the cast below is safe. | 511 // AtomicString is really just a StringImpl* so the cast below is safe. |
512 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 512 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
513 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 513 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
514 } | 514 } |
515 | 515 |
516 } // namespace WebCore | 516 } // namespace WebCore |
517 | 517 |
518 #endif // CSSSelector_h | 518 #endif // CSSSelector_h |
OLD | NEW |