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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 End, // css3: E[foo$="bar"] | 72 End, // css3: E[foo$="bar"] |
73 PagePseudoClass | 73 PagePseudoClass |
74 }; | 74 }; |
75 | 75 |
76 enum Relation { | 76 enum Relation { |
77 Descendant = 0, | 77 Descendant = 0, |
78 Child, | 78 Child, |
79 DirectAdjacent, | 79 DirectAdjacent, |
80 IndirectAdjacent, | 80 IndirectAdjacent, |
81 SubSelector, | 81 SubSelector, |
82 ShadowDescendant, | 82 ShadowPseudo, |
83 ShadowDistributed | 83 ShadowDistributed |
84 }; | 84 }; |
85 | 85 |
86 enum PseudoType { | 86 enum PseudoType { |
87 PseudoNotParsed = 0, | 87 PseudoNotParsed = 0, |
88 PseudoUnknown, | 88 PseudoUnknown, |
89 PseudoEmpty, | 89 PseudoEmpty, |
90 PseudoFirstChild, | 90 PseudoFirstChild, |
91 PseudoFirstOfType, | 91 PseudoFirstOfType, |
92 PseudoLastChild, | 92 PseudoLastChild, |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 ASSERT(m_match != Tag); | 433 ASSERT(m_match != Tag); |
434 // AtomicString is really just an AtomicStringImpl* so the cast below is saf
e. | 434 // AtomicString is really just an AtomicStringImpl* so the cast below is saf
e. |
435 // FIXME: Perhaps call sites could be changed to accept AtomicStringImpl? | 435 // FIXME: Perhaps call sites could be changed to accept AtomicStringImpl? |
436 return *reinterpret_cast<const AtomicString*>(m_hasRareData ? &m_data.m_rare
Data->m_value : &m_data.m_value); | 436 return *reinterpret_cast<const AtomicString*>(m_hasRareData ? &m_data.m_rare
Data->m_value : &m_data.m_value); |
437 } | 437 } |
438 | 438 |
439 | 439 |
440 } // namespace WebCore | 440 } // namespace WebCore |
441 | 441 |
442 #endif // CSSSelector_h | 442 #endif // CSSSelector_h |
OLD | NEW |