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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 void updatePseudoType(const AtomicString& value, bool hasArguments = false)
const { m_selector->updatePseudoType(value, hasArguments); } | 52 void updatePseudoType(const AtomicString& value, bool hasArguments = false)
const { m_selector->updatePseudoType(value, hasArguments); } |
53 | 53 |
54 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); | 54 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); |
55 void setSelectorList(PassOwnPtr<CSSSelectorList>); | 55 void setSelectorList(PassOwnPtr<CSSSelectorList>); |
56 | 56 |
57 bool hasHostPseudoSelector() const; | 57 bool hasHostPseudoSelector() const; |
58 | 58 |
59 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 59 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
60 | 60 |
61 // TODO(esprehn): This set of cases doesn't make sense, why PseudoShadow but
not a check for ::content or /deep/ ? | 61 bool needsImplicitShadowCrossingCombinatorForMatching() const { return pseud
oType() == CSSSelector::PseudoWebKitCustomElement || pseudoType() == CSSSelector
::PseudoCue || pseudoType() == CSSSelector::PseudoShadow; } |
62 bool crossesTreeScopes() const { return pseudoType() == CSSSelector::PseudoW
ebKitCustomElement || pseudoType() == CSSSelector::PseudoCue || pseudoType() ==
CSSSelector::PseudoShadow; } | |
63 | 62 |
64 bool isSimple() const; | 63 bool isSimple() const; |
65 bool hasShadowPseudo() const; | 64 bool hasImplicitShadowCrossingCombinatorForMatching() const; |
66 | 65 |
67 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } | 66 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } |
68 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } | 67 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } |
69 void clearTagHistory() { m_tagHistory.clear(); } | 68 void clearTagHistory() { m_tagHistory.clear(); } |
70 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); | 69 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); |
71 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); | 70 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); |
72 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); | 71 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); |
73 | 72 |
74 private: | 73 private: |
75 OwnPtr<CSSSelector> m_selector; | 74 OwnPtr<CSSSelector> m_selector; |
76 OwnPtr<CSSParserSelector> m_tagHistory; | 75 OwnPtr<CSSParserSelector> m_tagHistory; |
77 }; | 76 }; |
78 | 77 |
79 inline bool CSSParserSelector::hasShadowPseudo() const | 78 inline bool CSSParserSelector::hasImplicitShadowCrossingCombinatorForMatching()
const |
80 { | 79 { |
81 return m_selector->relation() == CSSSelector::ShadowPseudo; | 80 return m_selector->relation() == CSSSelector::ShadowPseudo; |
82 } | 81 } |
83 | 82 |
84 } // namespace blink | 83 } // namespace blink |
85 | 84 |
86 #endif | 85 #endif |
OLD | NEW |