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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 class CSSParserSelector { | 187 class CSSParserSelector { |
188 WTF_MAKE_FAST_ALLOCATED; | 188 WTF_MAKE_FAST_ALLOCATED; |
189 public: | 189 public: |
190 CSSParserSelector(); | 190 CSSParserSelector(); |
191 explicit CSSParserSelector(const QualifiedName&); | 191 explicit CSSParserSelector(const QualifiedName&); |
192 ~CSSParserSelector(); | 192 ~CSSParserSelector(); |
193 | 193 |
194 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } | 194 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } |
195 | 195 |
| 196 CSSSelector::Relation relation() const { return m_selector->relation(); } |
196 void setValue(const AtomicString& value) { m_selector->setValue(value); } | 197 void setValue(const AtomicString& value) { m_selector->setValue(value); } |
197 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val
ue); } | 198 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val
ue); } |
198 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } | 199 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } |
199 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } | 200 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } |
200 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val
ue; } | 201 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val
ue; } |
201 void setForPage() { m_selector->setForPage(); } | 202 void setForPage() { m_selector->setForPage(); } |
| 203 void setRelationIsForShadowDistributed() { m_selector->setRelationIsForShado
wDistributed(); } |
202 | 204 |
203 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector)
; | 205 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector)
; |
204 | 206 |
205 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum
entSelector; } | 207 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum
entSelector; } |
206 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr
gumentSelector = selector; } | 208 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr
gumentSelector = selector; } |
207 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs
eudoElement(); } | 209 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs
eudoElement(); } |
208 CSSParserSelector* findDistributedPseudoElementSelector() const; | 210 CSSParserSelector* findDistributedPseudoElementSelector() const; |
209 | 211 |
210 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 212 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
211 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } | 213 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } |
(...skipping 15 matching lines...) Expand all Loading... |
227 }; | 229 }; |
228 | 230 |
229 inline bool CSSParserSelector::hasShadowPseudo() const | 231 inline bool CSSParserSelector::hasShadowPseudo() const |
230 { | 232 { |
231 return m_selector->relation() == CSSSelector::ShadowPseudo; | 233 return m_selector->relation() == CSSSelector::ShadowPseudo; |
232 } | 234 } |
233 | 235 |
234 } | 236 } |
235 | 237 |
236 #endif | 238 #endif |
OLD | NEW |