OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CSSCalcLength_h | 5 #ifndef CSSCalcLength_h |
6 #define CSSCalcLength_h | 6 #define CSSCalcLength_h |
7 | 7 |
8 #include "core/css/cssom/CSSLengthValue.h" | 8 #include "core/css/cssom/CSSLengthValue.h" |
9 #include "wtf/BitVector.h" | 9 #include "wtf/BitVector.h" |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 Vector<double, CSSLengthValue::kNumSupportedUnits> m_values; | 95 Vector<double, CSSLengthValue::kNumSupportedUnits> m_values; |
96 BitVector m_hasValues; | 96 BitVector m_hasValues; |
97 }; | 97 }; |
98 | 98 |
99 #define DEFINE_CALC_LENGTH_TYPE_CASTS(argumentType) \ | 99 #define DEFINE_CALC_LENGTH_TYPE_CASTS(argumentType) \ |
100 DEFINE_TYPE_CASTS(CSSCalcLength, argumentType, value, \ | 100 DEFINE_TYPE_CASTS(CSSCalcLength, argumentType, value, \ |
101 value->type() == CSSLengthValue::StyleValueType::CalcLengthType, \ | 101 value->type() == CSSLengthValue::StyleValueType::CalcLengthType, \ |
102 value.type() == CSSLengthValue::StyleValueType::CalcLengthType) | 102 value.type() == CSSLengthValue::StyleValueType::CalcLengthType) |
103 | 103 |
104 DEFINE_CALC_LENGTH_TYPE_CASTS(StyleValue); | 104 DEFINE_CALC_LENGTH_TYPE_CASTS(CSSStyleValue); |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif | 108 #endif |
OLD | NEW |