OLD | NEW |
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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef CSSParserValues_h | 21 #ifndef CSSParserValues_h |
22 #define CSSParserValues_h | 22 #define CSSParserValues_h |
23 | 23 |
24 #include "core/CSSValueKeywords.h" | 24 #include "core/CSSValueKeywords.h" |
25 #include "core/css/CSSPrimitiveValue.h" | 25 #include "core/css/CSSPrimitiveValue.h" |
26 #include "core/css/CSSSelector.h" | 26 #include "core/css/CSSSelector.h" |
27 #include "core/css/CSSValueList.h" | 27 #include "core/css/CSSValueList.h" |
28 #include "core/css/parser/CSSParserString.h" | 28 #include "core/css/parser/CSSParserString.h" |
29 #include "core/css/parser/CSSParserTokenRange.h" | 29 #include "core/css/parser/CSSParserTokenRange.h" |
| 30 #include "wtf/Allocator.h" |
30 | 31 |
31 namespace blink { | 32 namespace blink { |
32 | 33 |
33 class QualifiedName; | 34 class QualifiedName; |
34 | 35 |
35 struct CSSParserFunction; | 36 struct CSSParserFunction; |
36 struct CSSParserCalcFunction; | 37 struct CSSParserCalcFunction; |
37 class CSSParserValueList; | 38 class CSSParserValueList; |
38 | 39 |
39 struct CSSParserValue { | 40 struct CSSParserValue { |
| 41 ALLOW_ONLY_INLINE_ALLOCATION(); |
40 CSSValueID id; | 42 CSSValueID id; |
41 bool isInt; | 43 bool isInt; |
42 union { | 44 union { |
43 double fValue; | 45 double fValue; |
44 int iValue; | 46 int iValue; |
45 CSSParserString string; | 47 CSSParserString string; |
46 CSSParserFunction* function; | 48 CSSParserFunction* function; |
47 CSSParserCalcFunction* calcFunction; | 49 CSSParserCalcFunction* calcFunction; |
48 CSSParserValueList* valueList; | 50 CSSParserValueList* valueList; |
49 struct { | 51 struct { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 { | 204 { |
203 id = CSSValueInvalid; | 205 id = CSSValueInvalid; |
204 this->valueList = valueList.leakPtr(); | 206 this->valueList = valueList.leakPtr(); |
205 m_unit = ValueList; | 207 m_unit = ValueList; |
206 isInt = false; | 208 isInt = false; |
207 } | 209 } |
208 | 210 |
209 } | 211 } |
210 | 212 |
211 #endif | 213 #endif |
OLD | NEW |