OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |