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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 public: | 209 public: |
210 CSSValueID id; | 210 CSSValueID id; |
211 OwnPtr<CSSParserValueList> args; | 211 OwnPtr<CSSParserValueList> args; |
212 }; | 212 }; |
213 | 213 |
214 class CSSParserSelector { | 214 class CSSParserSelector { |
215 WTF_MAKE_NONCOPYABLE(CSSParserSelector); WTF_MAKE_FAST_ALLOCATED; | 215 WTF_MAKE_NONCOPYABLE(CSSParserSelector); WTF_MAKE_FAST_ALLOCATED; |
216 public: | 216 public: |
217 CSSParserSelector(); | 217 CSSParserSelector(); |
218 explicit CSSParserSelector(const QualifiedName&); | 218 explicit CSSParserSelector(const QualifiedName&); |
| 219 |
| 220 static PassOwnPtr<CSSParserSelector> create() { return adoptPtr(new CSSParse
rSelector); } |
| 221 static PassOwnPtr<CSSParserSelector> create(const QualifiedName& name) { ret
urn adoptPtr(new CSSParserSelector(name)); } |
| 222 |
219 ~CSSParserSelector(); | 223 ~CSSParserSelector(); |
220 | 224 |
221 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } | 225 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } |
222 | 226 |
223 CSSSelector::Relation relation() const { return m_selector->relation(); } | 227 CSSSelector::Relation relation() const { return m_selector->relation(); } |
224 void setValue(const AtomicString& value) { m_selector->setValue(value); } | 228 void setValue(const AtomicString& value) { m_selector->setValue(value); } |
225 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp
e matchType) { m_selector->setAttribute(value, matchType); } | 229 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp
e matchType) { m_selector->setAttribute(value, matchType); } |
226 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } | 230 void setArgument(const AtomicString& value) { m_selector->setArgument(value)
; } |
227 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } | 231 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } |
228 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu
e); } | 232 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu
e); } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 { | 294 { |
291 id = CSSValueInvalid; | 295 id = CSSValueInvalid; |
292 this->valueList = valueList.leakPtr(); | 296 this->valueList = valueList.leakPtr(); |
293 unit = ValueList; | 297 unit = ValueList; |
294 isInt = false; | 298 isInt = false; |
295 } | 299 } |
296 | 300 |
297 } | 301 } |
298 | 302 |
299 #endif | 303 #endif |
OLD | NEW |