Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: Source/core/css/parser/CSSParserValues.h

Issue 1181023004: Move rem handling out of CSSParserValues.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); 70 inline void setFromValueList(PassOwnPtr<CSSParserValueList>);
71 }; 71 };
72 72
73 class CORE_EXPORT CSSParserValueList { 73 class CORE_EXPORT CSSParserValueList {
74 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList); 74 WTF_MAKE_FAST_ALLOCATED(CSSParserValueList);
75 public: 75 public:
76 CSSParserValueList() 76 CSSParserValueList()
77 : m_current(0) 77 : m_current(0)
78 { 78 {
79 } 79 }
80 CSSParserValueList(CSSParserTokenRange, bool& usesRemUnits); 80 CSSParserValueList(CSSParserTokenRange);
81 ~CSSParserValueList(); 81 ~CSSParserValueList();
82 82
83 void addValue(const CSSParserValue&); 83 void addValue(const CSSParserValue&);
84 84
85 unsigned size() const { return m_values.size(); } 85 unsigned size() const { return m_values.size(); }
86 unsigned currentIndex() { return m_current; } 86 unsigned currentIndex() { return m_current; }
87 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m _current] : 0; } 87 CSSParserValue* current() { return m_current < m_values.size() ? &m_values[m _current] : 0; }
88 CSSParserValue* next() { ++m_current; return current(); } 88 CSSParserValue* next() { ++m_current; return current(); }
89 CSSParserValue* previous() 89 CSSParserValue* previous()
90 { 90 {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { 201 {
202 id = CSSValueInvalid; 202 id = CSSValueInvalid;
203 this->valueList = valueList.leakPtr(); 203 this->valueList = valueList.leakPtr();
204 m_unit = ValueList; 204 m_unit = ValueList;
205 isInt = false; 205 isInt = false;
206 } 206 }
207 207
208 } 208 }
209 209
210 #endif 210 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698