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, |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class QualifiedName; | 33 class QualifiedName; |
34 | 34 |
35 struct CSSParserFunction; | 35 struct CSSParserFunction; |
36 struct CSSParserCalcFunction; | 36 struct CSSParserCalcFunction; |
37 class CSSParserValueList; | 37 class CSSParserValueList; |
38 | 38 |
39 struct CSSParserValue { | 39 struct CSSParserValue { |
40 ALLOW_ONLY_INLINE_ALLOCATION(); | 40 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
41 CSSValueID id; | 41 CSSValueID id; |
42 bool isInt; | 42 bool isInt; |
43 union { | 43 union { |
44 double fValue; | 44 double fValue; |
45 int iValue; | 45 int iValue; |
46 CSSParserString string; | 46 CSSParserString string; |
47 CSSParserFunction* function; | 47 CSSParserFunction* function; |
48 CSSParserCalcFunction* calcFunction; | 48 CSSParserCalcFunction* calcFunction; |
49 CSSParserValueList* valueList; | 49 CSSParserValueList* valueList; |
50 struct { | 50 struct { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 { | 149 { |
150 id = CSSValueInvalid; | 150 id = CSSValueInvalid; |
151 this->valueList = valueList.leakPtr(); | 151 this->valueList = valueList.leakPtr(); |
152 m_unit = ValueList; | 152 m_unit = ValueList; |
153 isInt = false; | 153 isInt = false; |
154 } | 154 } |
155 | 155 |
156 } | 156 } |
157 | 157 |
158 #endif | 158 #endif |
OLD | NEW |