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

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

Issue 470903003: Remove CSSParserValue::createCSSValue and unused callers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pp4
Patch Set: fix forward decl Created 6 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/CSSValueList.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool m_is8Bit; 129 bool m_is8Bit;
130 }; 130 };
131 131
132 template <> 132 template <>
133 inline const LChar* CSSParserString::characters<LChar>() const { return characte rs8(); } 133 inline const LChar* CSSParserString::characters<LChar>() const { return characte rs8(); }
134 134
135 template <> 135 template <>
136 inline const UChar* CSSParserString::characters<UChar>() const { return characte rs16(); } 136 inline const UChar* CSSParserString::characters<UChar>() const { return characte rs16(); }
137 137
138 struct CSSParserFunction; 138 struct CSSParserFunction;
139 class CSSParserValueList;
139 140
140 struct CSSParserValue { 141 struct CSSParserValue {
141 CSSValueID id; 142 CSSValueID id;
142 bool isInt; 143 bool isInt;
143 union { 144 union {
144 double fValue; 145 double fValue;
145 int iValue; 146 int iValue;
146 CSSParserString string; 147 CSSParserString string;
147 CSSParserFunction* function; 148 CSSParserFunction* function;
148 CSSParserValueList* valueList; 149 CSSParserValueList* valueList;
149 }; 150 };
150 enum { 151 enum {
151 Operator = 0x100000, 152 Operator = 0x100000,
152 Function = 0x100001, 153 Function = 0x100001,
153 ValueList = 0x100002, 154 ValueList = 0x100002,
154 Q_EMS = 0x100003, 155 Q_EMS = 0x100003,
155 }; 156 };
156 int unit; 157 int unit;
157 158
158 inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NU MBER); 159 inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NU MBER);
159 inline void setFromFunction(CSSParserFunction*); 160 inline void setFromFunction(CSSParserFunction*);
160 inline void setFromValueList(PassOwnPtr<CSSParserValueList>); 161 inline void setFromValueList(PassOwnPtr<CSSParserValueList>);
161
162 PassRefPtrWillBeRawPtr<CSSValue> createCSSValue();
163 }; 162 };
164 163
165 class CSSParserValueList { 164 class CSSParserValueList {
166 WTF_MAKE_FAST_ALLOCATED; 165 WTF_MAKE_FAST_ALLOCATED;
167 public: 166 public:
168 CSSParserValueList() 167 CSSParserValueList()
169 : m_current(0) 168 : m_current(0)
170 { 169 {
171 } 170 }
172 ~CSSParserValueList(); 171 ~CSSParserValueList();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 { 280 {
282 id = CSSValueInvalid; 281 id = CSSValueInvalid;
283 this->valueList = valueList.leakPtr(); 282 this->valueList = valueList.leakPtr();
284 unit = ValueList; 283 unit = ValueList;
285 isInt = false; 284 isInt = false;
286 } 285 }
287 286
288 } 287 }
289 288
290 #endif 289 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueList.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698