| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SizesCalcParser_h | 5 #ifndef SizesCalcParser_h |
| 6 #define SizesCalcParser_h | 6 #define SizesCalcParser_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/MediaValues.h" | 9 #include "core/css/MediaValues.h" |
| 10 #include "core/css/parser/CSSParserToken.h" | 10 #include "core/css/parser/CSSParserToken.h" |
| 11 #include "core/css/parser/CSSParserTokenRange.h" | 11 #include "core/css/parser/CSSParserTokenRange.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 struct SizesCalcValue { | 16 struct SizesCalcValue { |
| 17 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 17 double value; | 18 double value; |
| 18 bool isLength; | 19 bool isLength; |
| 19 UChar operation; | 20 UChar operation; |
| 20 | 21 |
| 21 SizesCalcValue() | 22 SizesCalcValue() |
| 22 : value(0) | 23 : value(0) |
| 23 , isLength(false) | 24 , isLength(false) |
| 24 , operation(0) | 25 , operation(0) |
| 25 { | 26 { |
| 26 } | 27 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 52 Vector<SizesCalcValue> m_valueList; | 53 Vector<SizesCalcValue> m_valueList; |
| 53 RefPtrWillBeMember<MediaValues> m_mediaValues; | 54 RefPtrWillBeMember<MediaValues> m_mediaValues; |
| 54 bool m_isValid; | 55 bool m_isValid; |
| 55 float m_result; | 56 float m_result; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace blink | 59 } // namespace blink |
| 59 | 60 |
| 60 #endif // SizesCalcParser_h | 61 #endif // SizesCalcParser_h |
| 61 | 62 |
| OLD | NEW |