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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val
ue); } | 222 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val
ue); } |
223 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } | 223 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } |
224 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } | 224 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } |
225 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val
ue; } | 225 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val
ue; } |
226 void setForPage() { m_selector->setForPage(); } | 226 void setForPage() { m_selector->setForPage(); } |
227 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec
tedByPseudoContent(); } | 227 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec
tedByPseudoContent(); } |
228 bool relationIsAffectedByPseudoContent() const { return m_selector->relation
IsAffectedByPseudoContent(); } | 228 bool relationIsAffectedByPseudoContent() const { return m_selector->relation
IsAffectedByPseudoContent(); } |
229 | 229 |
230 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector)
; | 230 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector)
; |
231 | 231 |
232 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum
entSelector; } | |
233 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr
gumentSelector = selector; } | |
234 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs
eudoElement(); } | |
235 CSSParserSelector* findDistributedPseudoElementSelector() const; | |
236 bool hasHostPseudoSelector() const; | 232 bool hasHostPseudoSelector() const; |
237 bool isContentPseudoElement() const { return m_selector->isContentPseudoElem
ent(); } | 233 bool isContentPseudoElement() const { return m_selector->isContentPseudoElem
ent(); } |
238 | 234 |
239 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 235 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
240 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } | 236 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen
t(); } |
241 bool needsCrossingTreeScopeBoundary() const { return isCustomPseudoElement()
|| pseudoType() == CSSSelector::PseudoCue; } | 237 bool needsCrossingTreeScopeBoundary() const { return isCustomPseudoElement()
|| pseudoType() == CSSSelector::PseudoCue; } |
242 | 238 |
243 bool isSimple() const; | 239 bool isSimple() const; |
244 bool hasShadowPseudo() const; | 240 bool hasShadowPseudo() const; |
245 | 241 |
246 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } | 242 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } |
247 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } | 243 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory =
selector; } |
248 void clearTagHistory() { m_tagHistory.clear(); } | 244 void clearTagHistory() { m_tagHistory.clear(); } |
249 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); | 245 void insertTagHistory(CSSSelector::Relation before, PassOwnPtr<CSSParserSele
ctor>, CSSSelector::Relation after); |
250 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); | 246 void appendTagHistory(CSSSelector::Relation, PassOwnPtr<CSSParserSelector>); |
251 void prependTagSelector(const QualifiedName&, bool tagIsForNamespaceRule = f
alse); | 247 void prependTagSelector(const QualifiedName&, bool tagIsForNamespaceRule = f
alse); |
252 | 248 |
253 private: | 249 private: |
254 OwnPtr<CSSSelector> m_selector; | 250 OwnPtr<CSSSelector> m_selector; |
255 OwnPtr<CSSParserSelector> m_tagHistory; | 251 OwnPtr<CSSParserSelector> m_tagHistory; |
256 CSSParserSelector* m_functionArgumentSelector; | |
257 }; | 252 }; |
258 | 253 |
259 inline bool CSSParserSelector::hasShadowPseudo() const | 254 inline bool CSSParserSelector::hasShadowPseudo() const |
260 { | 255 { |
261 return m_selector->relation() == CSSSelector::ShadowPseudo; | 256 return m_selector->relation() == CSSSelector::ShadowPseudo; |
262 } | 257 } |
263 | 258 |
264 inline void CSSParserValue::setFromNumber(double value, int unit) | 259 inline void CSSParserValue::setFromNumber(double value, int unit) |
265 { | 260 { |
266 id = CSSValueInvalid; | 261 id = CSSValueInvalid; |
(...skipping 15 matching lines...) Expand all Loading... |
282 inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu
eList) | 277 inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu
eList) |
283 { | 278 { |
284 id = CSSValueInvalid; | 279 id = CSSValueInvalid; |
285 this->valueList = valueList.leakPtr(); | 280 this->valueList = valueList.leakPtr(); |
286 unit = ValueList; | 281 unit = ValueList; |
287 } | 282 } |
288 | 283 |
289 } | 284 } |
290 | 285 |
291 #endif | 286 #endif |
OLD | NEW |