OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights |
4 * reserved. | 4 * 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return m_selector->getPseudoType(); | 91 return m_selector->getPseudoType(); |
92 } | 92 } |
93 const CSSSelectorList* selectorList() const { | 93 const CSSSelectorList* selectorList() const { |
94 return m_selector->selectorList(); | 94 return m_selector->selectorList(); |
95 } | 95 } |
96 | 96 |
97 bool needsImplicitShadowCombinatorForMatching() const { | 97 bool needsImplicitShadowCombinatorForMatching() const { |
98 return pseudoType() == CSSSelector::PseudoWebKitCustomElement || | 98 return pseudoType() == CSSSelector::PseudoWebKitCustomElement || |
99 pseudoType() == CSSSelector::PseudoBlinkInternalElement || | 99 pseudoType() == CSSSelector::PseudoBlinkInternalElement || |
100 pseudoType() == CSSSelector::PseudoCue || | 100 pseudoType() == CSSSelector::PseudoCue || |
| 101 pseudoType() == CSSSelector::PseudoPlaceholder || |
101 pseudoType() == CSSSelector::PseudoShadow || | 102 pseudoType() == CSSSelector::PseudoShadow || |
102 pseudoType() == CSSSelector::PseudoSlotted; | 103 pseudoType() == CSSSelector::PseudoSlotted; |
103 } | 104 } |
104 | 105 |
105 bool isSimple() const; | 106 bool isSimple() const; |
106 | 107 |
107 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } | 108 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } |
108 void setTagHistory(std::unique_ptr<CSSParserSelector> selector) { | 109 void setTagHistory(std::unique_ptr<CSSParserSelector> selector) { |
109 m_tagHistory = std::move(selector); | 110 m_tagHistory = std::move(selector); |
110 } | 111 } |
111 void clearTagHistory() { m_tagHistory.reset(); } | 112 void clearTagHistory() { m_tagHistory.reset(); } |
112 void appendTagHistory(CSSSelector::RelationType, | 113 void appendTagHistory(CSSSelector::RelationType, |
113 std::unique_ptr<CSSParserSelector>); | 114 std::unique_ptr<CSSParserSelector>); |
114 std::unique_ptr<CSSParserSelector> releaseTagHistory(); | 115 std::unique_ptr<CSSParserSelector> releaseTagHistory(); |
115 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); | 116 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); |
116 | 117 |
117 private: | 118 private: |
118 std::unique_ptr<CSSSelector> m_selector; | 119 std::unique_ptr<CSSSelector> m_selector; |
119 std::unique_ptr<CSSParserSelector> m_tagHistory; | 120 std::unique_ptr<CSSParserSelector> m_tagHistory; |
120 }; | 121 }; |
121 | 122 |
122 } // namespace blink | 123 } // namespace blink |
123 | 124 |
124 #endif | 125 #endif |
OLD | NEW |