| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); | 72 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 class CORE_EXPORT CSSParserValueList { | 75 class CORE_EXPORT CSSParserValueList { |
| 76 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList); | 76 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList); |
| 77 public: | 77 public: |
| 78 CSSParserValueList() | 78 CSSParserValueList() |
| 79 : m_current(0) | 79 : m_current(0) |
| 80 { | 80 { |
| 81 } | 81 } |
| 82 CSSParserValueList(CSSParserTokenRange, bool& usesRemUnits); | 82 CSSParserValueList(CSSParserTokenRange); |
| 83 ~CSSParserValueList(); | 83 ~CSSParserValueList(); |
| 84 | 84 |
| 85 void addValue(const CSSParserValue&); | 85 void addValue(const CSSParserValue&); |
| 86 | 86 |
| 87 unsigned size() const { return m_values.size(); } | 87 unsigned size() const { return m_values.size(); } |
| 88 unsigned currentIndex() { return m_current; } | 88 unsigned currentIndex() { return m_current; } |
| 89 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m
_current] : 0; } | 89 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m
_current] : 0; } |
| 90 CSSParserValue* next() { ++m_current; return current(); } | 90 CSSParserValue* next() { ++m_current; return current(); } |
| 91 CSSParserValue* previous() | 91 CSSParserValue* previous() |
| 92 { | 92 { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 { | 202 { |
| 203 id = CSSValueInvalid; | 203 id = CSSValueInvalid; |
| 204 this->valueList = valueList.leakPtr(); | 204 this->valueList = valueList.leakPtr(); |
| 205 m_unit = ValueList; | 205 m_unit = ValueList; |
| 206 isInt = false; | 206 isInt = false; |
| 207 } | 207 } |
| 208 | 208 |
| 209 } | 209 } |
| 210 | 210 |
| 211 #endif | 211 #endif |
| OLD | NEW |