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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); | 55 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); |
56 void setSelectorList(PassOwnPtr<CSSSelectorList>); | 56 void setSelectorList(PassOwnPtr<CSSSelectorList>); |
57 | 57 |
58 bool isHostPseudoSelector() const; | 58 bool isHostPseudoSelector() const; |
59 | 59 |
60 CSSSelector::Match match() const { return m_selector->match(); } | 60 CSSSelector::Match match() const { return m_selector->match(); } |
61 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 61 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
62 const CSSSelectorList* selectorList() const { return m_selector->selectorLis
t(); } | 62 const CSSSelectorList* selectorList() const { return m_selector->selectorLis
t(); } |
63 | 63 |
64 bool needsImplicitShadowCrossingCombinatorForMatching() const { return pseud
oType() == CSSSelector::PseudoWebKitCustomElement || pseudoType() == CSSSelector
::PseudoCue || pseudoType() == CSSSelector::PseudoShadow; } | 64 bool needsImplicitShadowCombinatorForMatching() const { return pseudoType()
== CSSSelector::PseudoWebKitCustomElement || pseudoType() == CSSSelector::Pseudo
Cue || pseudoType() == CSSSelector::PseudoShadow || pseudoType() == CSSSelector:
:PseudoSlotted; } |
65 | 65 |
66 bool isSimple() const; | 66 bool isSimple() const; |
67 | 67 |
68 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } | 68 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } |
69 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } | 69 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } |
70 void clearTagHistory() { m_tagHistory.clear(); } | 70 void clearTagHistory() { m_tagHistory.clear(); } |
71 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); | 71 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); |
72 PassOwnPtr<CSSParserSelector> releaseTagHistory(); | 72 PassOwnPtr<CSSParserSelector> releaseTagHistory(); |
73 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); | 73 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); |
74 | 74 |
75 private: | 75 private: |
76 OwnPtr<CSSSelector> m_selector; | 76 OwnPtr<CSSSelector> m_selector; |
77 OwnPtr<CSSParserSelector> m_tagHistory; | 77 OwnPtr<CSSParserSelector> m_tagHistory; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace blink | 80 } // namespace blink |
81 | 81 |
82 #endif | 82 #endif |
OLD | NEW |