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 reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum
entSelector; } | 205 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum
entSelector; } |
206 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr
gumentSelector = selector; } | 206 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr
gumentSelector = selector; } |
207 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs
eudoElement(); } | 207 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs
eudoElement(); } |
208 CSSParserSelector* findDistributedPseudoElementSelector() const; | 208 CSSParserSelector* findDistributedPseudoElementSelector() const; |
209 | 209 |
210 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 210 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
211 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } | 211 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } |
212 | 212 |
213 bool isSimple() const; | 213 bool isSimple() const; |
214 bool hasShadowDescendant() const; | 214 bool hasShadowPseudo() const; |
215 | 215 |
216 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } | 216 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } |
217 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } | 217 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } |
218 void clearTagHistory() { m_tagHistory.clear(); } | 218 void clearTagHistory() { m_tagHistory.clear(); } |
219 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); | 219 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); |
220 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); | 220 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); |
221 void prependTagSelector(const QualifiedName&, bool tagIsForNamespaceRule = f
alse); | 221 void prependTagSelector(const QualifiedName&, bool tagIsForNamespaceRule = f
alse); |
222 | 222 |
223 private: | 223 private: |
224 OwnPtr<CSSSelector> m_selector; | 224 OwnPtr<CSSSelector> m_selector; |
225 OwnPtr<CSSParserSelector> m_tagHistory; | 225 OwnPtr<CSSParserSelector> m_tagHistory; |
226 CSSParserSelector* m_functionArgumentSelector; | 226 CSSParserSelector* m_functionArgumentSelector; |
227 }; | 227 }; |
228 | 228 |
229 inline bool CSSParserSelector::hasShadowDescendant() const | 229 inline bool CSSParserSelector::hasShadowPseudo() const |
230 { | 230 { |
231 return m_selector->relation() == CSSSelector::ShadowDescendant; | 231 return m_selector->relation() == CSSSelector::ShadowPseudo; |
232 } | 232 } |
233 | 233 |
234 } | 234 } |
235 | 235 |
236 #endif | 236 #endif |
OLD | NEW |