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

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: Another attempt 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
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserImpl.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698