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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp
e matchType) { m_selector->setAttribute(value, matchType); } | 208 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp
e matchType) { m_selector->setAttribute(value, matchType); } |
209 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } | 209 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } |
210 void setNth(int a, int b) { m_selector->setNth(a, b); } | 210 void setNth(int a, int b) { m_selector->setNth(a, b); } |
211 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } | 211 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } |
212 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu
e); } | 212 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu
e); } |
213 void setForPage() { m_selector->setForPage(); } | 213 void setForPage() { m_selector->setForPage(); } |
214 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec
tedByPseudoContent(); } | 214 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec
tedByPseudoContent(); } |
215 bool relationIsAffectedByPseudoContent() const { return m_selector->relation
IsAffectedByPseudoContent(); } | 215 bool relationIsAffectedByPseudoContent() const { return m_selector->relation
IsAffectedByPseudoContent(); } |
216 | 216 |
217 void updatePseudoType(const AtomicString& value, bool hasArguments = false)
const { m_selector->updatePseudoType(value, hasArguments); } | 217 void updatePseudoType(const AtomicString& value, bool hasArguments = false)
const { m_selector->updatePseudoType(value, hasArguments); } |
| 218 void updateLinkMatchType() { m_selector->updateLinkMatchType(); } |
218 | 219 |
219 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); | 220 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); |
220 void setSelectorList(PassOwnPtr<CSSSelectorList>); | 221 void setSelectorList(PassOwnPtr<CSSSelectorList>); |
221 | 222 |
222 bool hasHostPseudoSelector() const; | 223 bool hasHostPseudoSelector() const; |
223 | 224 |
224 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } | 225 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType()
; } |
225 | 226 |
226 // TODO(esprehn): This set of cases doesn't make sense, why PseudoShadow but
not a check for ::content or /deep/ ? | 227 // TODO(esprehn): This set of cases doesn't make sense, why PseudoShadow but
not a check for ::content or /deep/ ? |
227 bool crossesTreeScopes() const { return pseudoType() == CSSSelector::PseudoW
ebKitCustomElement || pseudoType() == CSSSelector::PseudoCue || pseudoType() ==
CSSSelector::PseudoShadow; } | 228 bool crossesTreeScopes() const { return pseudoType() == CSSSelector::PseudoW
ebKitCustomElement || pseudoType() == CSSSelector::PseudoCue || pseudoType() ==
CSSSelector::PseudoShadow; } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 { | 275 { |
275 id = CSSValueInvalid; | 276 id = CSSValueInvalid; |
276 this->valueList = valueList.leakPtr(); | 277 this->valueList = valueList.leakPtr(); |
277 unit = ValueList; | 278 unit = ValueList; |
278 isInt = false; | 279 isInt = false; |
279 } | 280 } |
280 | 281 |
281 } | 282 } |
282 | 283 |
283 #endif | 284 #endif |
OLD | NEW |