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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); | 142 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); |
143 }; | 143 }; |
144 | 144 |
145 class CORE_EXPORT CSSParserValueList { | 145 class CORE_EXPORT CSSParserValueList { |
146 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList); | 146 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList); |
147 public: | 147 public: |
148 CSSParserValueList() | 148 CSSParserValueList() |
149 : m_current(0) | 149 : m_current(0) |
150 { | 150 { |
151 } | 151 } |
152 CSSParserValueList(CSSParserTokenRange, bool& usesRemUnits); | 152 CSSParserValueList(CSSParserTokenRange); |
153 ~CSSParserValueList(); | 153 ~CSSParserValueList(); |
154 | 154 |
155 void addValue(const CSSParserValue&); | 155 void addValue(const CSSParserValue&); |
156 | 156 |
157 unsigned size() const { return m_values.size(); } | 157 unsigned size() const { return m_values.size(); } |
158 unsigned currentIndex() { return m_current; } | 158 unsigned currentIndex() { return m_current; } |
159 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m
_current] : 0; } | 159 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m
_current] : 0; } |
160 CSSParserValue* next() { ++m_current; return current(); } | 160 CSSParserValue* next() { ++m_current; return current(); } |
161 CSSParserValue* previous() | 161 CSSParserValue* previous() |
162 { | 162 { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 { | 273 { |
274 id = CSSValueInvalid; | 274 id = CSSValueInvalid; |
275 this->valueList = valueList.leakPtr(); | 275 this->valueList = valueList.leakPtr(); |
276 unit = ValueList; | 276 unit = ValueList; |
277 isInt = false; | 277 isInt = false; |
278 } | 278 } |
279 | 279 |
280 } | 280 } |
281 | 281 |
282 #endif | 282 #endif |
OLD | NEW |