| 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 | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 AttributeEnd, // css3: E[foo$="bar"] | 122 AttributeEnd, // css3: E[foo$="bar"] |
| 123 FirstAttributeSelectorMatch = AttributeExact, | 123 FirstAttributeSelectorMatch = AttributeExact, |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 enum RelationType { | 126 enum RelationType { |
| 127 SubSelector, // No combinator | 127 SubSelector, // No combinator |
| 128 Descendant, // "Space" combinator | 128 Descendant, // "Space" combinator |
| 129 Child, // > combinator | 129 Child, // > combinator |
| 130 DirectAdjacent, // + combinator | 130 DirectAdjacent, // + combinator |
| 131 IndirectAdjacent, // ~ combinator | 131 IndirectAdjacent, // ~ combinator |
| 132 // Special cases for shadow DOM related selectors. | 132 // Special cases for shadow DOM related selectors. |
| 133 ShadowPiercingDescendant, // >>> combinator | 133 ShadowPiercingDescendant, // >>> combinator |
| 134 ShadowDeep, // /deep/ combinator | 134 ShadowDeep, // /deep/ combinator |
| 135 ShadowPseudo, // ::shadow pseudo element | 135 ShadowPseudo, // ::shadow pseudo element |
| 136 ShadowSlot // ::slotted() pseudo element | 136 ShadowSlot // ::slotted() pseudo element |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 enum PseudoType { | 139 enum PseudoType { |
| 140 PseudoUnknown, | 140 PseudoUnknown, |
| 141 PseudoEmpty, | 141 PseudoEmpty, |
| 142 PseudoFirstChild, | 142 PseudoFirstChild, |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 } | 535 } |
| 536 | 536 |
| 537 inline bool CSSSelector::isIdClassOrAttributeSelector() const { | 537 inline bool CSSSelector::isIdClassOrAttributeSelector() const { |
| 538 return isAttributeSelector() || match() == CSSSelector::Id || | 538 return isAttributeSelector() || match() == CSSSelector::Id || |
| 539 match() == CSSSelector::Class; | 539 match() == CSSSelector::Class; |
| 540 } | 540 } |
| 541 | 541 |
| 542 } // namespace blink | 542 } // namespace blink |
| 543 | 543 |
| 544 #endif // CSSSelector_h | 544 #endif // CSSSelector_h |
| OLD | NEW |