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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.h

Issue 476693002: Remove unused CSSPrimitiveValue::CSS_PARSER_{OPERATOR,INTEGER,IDENTIFIER} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pp6
Patch Set: 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/CSSCalculationValue.cpp ('k') | Source/core/css/CSSPrimitiveValue.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 CSS_VH = 27, 103 CSS_VH = 27,
104 CSS_VMIN = 28, 104 CSS_VMIN = 28,
105 CSS_VMAX = 29, 105 CSS_VMAX = 29,
106 CSS_DPPX = 30, 106 CSS_DPPX = 30,
107 CSS_DPI = 31, 107 CSS_DPI = 31,
108 CSS_DPCM = 32, 108 CSS_DPCM = 32,
109 CSS_FR = 33, 109 CSS_FR = 33,
110 CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc .) 110 CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc .)
111 CSS_UNICODE_RANGE = 102, 111 CSS_UNICODE_RANGE = 102,
112 112
113 // These next types are just used internally to allow us to translate ba ck and forth from CSSPrimitiveValues to CSSParserValues. 113 // FIXME: This is only used in CSSParserValue, so it's probably better a s part of the enum there
114 CSS_PARSER_OPERATOR = 103,
115 CSS_PARSER_INTEGER = 104,
116 CSS_PARSER_HEXCOLOR = 105, 114 CSS_PARSER_HEXCOLOR = 105,
117 115
118 // This is used internally for unknown identifiers
119 CSS_PARSER_IDENTIFIER = 106,
120
121 // These are from CSS3 Values and Units, but that isn't a finished stand ard yet 116 // These are from CSS3 Values and Units, but that isn't a finished stand ard yet
122 CSS_TURN = 107, 117 CSS_TURN = 107,
123 CSS_REMS = 108, 118 CSS_REMS = 108,
124 CSS_CHS = 109, 119 CSS_CHS = 109,
125 120
126 // This is used internally for counter names (as opposed to counter valu es) 121 // This is used internally for counter names (as opposed to counter valu es)
127 CSS_COUNTER_NAME = 110, 122 CSS_COUNTER_NAME = 110,
128 123
129 // This is used by the CSS Shapes draft 124 // This is used by the CSS Shapes draft
130 CSS_SHAPE = 111, 125 CSS_SHAPE = 111,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 bool colorIsDerivedFromElement() const; 214 bool colorIsDerivedFromElement() const;
220 215
221 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createIdentifier(CSSValueID valueID) 216 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createIdentifier(CSSValueID valueID)
222 { 217 {
223 return adoptRefWillBeNoop(new CSSPrimitiveValue(valueID)); 218 return adoptRefWillBeNoop(new CSSPrimitiveValue(valueID));
224 } 219 }
225 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createIdentifier(CSSPropert yID propertyID) 220 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createIdentifier(CSSPropert yID propertyID)
226 { 221 {
227 return adoptRefWillBeNoop(new CSSPrimitiveValue(propertyID)); 222 return adoptRefWillBeNoop(new CSSPrimitiveValue(propertyID));
228 } 223 }
229 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createParserOperator(int pa rserOperator)
230 {
231 return adoptRefWillBeNoop(new CSSPrimitiveValue(parserOperator, CSS_PARS ER_OPERATOR));
232 }
233 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createColor(unsigned rgbVal ue) 224 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createColor(unsigned rgbVal ue)
234 { 225 {
235 return adoptRefWillBeNoop(new CSSPrimitiveValue(rgbValue, CSS_RGBCOLOR)) ; 226 return adoptRefWillBeNoop(new CSSPrimitiveValue(rgbValue, CSS_RGBCOLOR)) ;
236 } 227 }
237 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(double value, UnitTy pe type) 228 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(double value, UnitTy pe type)
238 { 229 {
239 return adoptRefWillBeNoop(new CSSPrimitiveValue(value, type)); 230 return adoptRefWillBeNoop(new CSSPrimitiveValue(value, type));
240 } 231 }
241 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(const String& value, UnitType type) 232 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> create(const String& value, UnitType type)
242 { 233 {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } m_value; 402 } m_value;
412 }; 403 };
413 404
414 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray; 405 typedef CSSPrimitiveValue::CSSLengthArray CSSLengthArray;
415 406
416 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); 407 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue());
417 408
418 } // namespace blink 409 } // namespace blink
419 410
420 #endif // CSSPrimitiveValue_h 411 #endif // CSSPrimitiveValue_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSCalculationValue.cpp ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698