| Index: third_party/WebKit/Source/core/css/cssom/LengthValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/LengthValue.h b/third_party/WebKit/Source/core/css/cssom/LengthValue.h
|
| index dbf2763a894796ae2f9296de4cc905255e9c7a13..333024a0e14a52bebcaa28df2f315d21a4a97c02 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/LengthValue.h
|
| +++ b/third_party/WebKit/Source/core/css/cssom/LengthValue.h
|
| @@ -30,6 +30,8 @@ public:
|
| static LengthValue* fromDictionary(const CalcDictionary&, ExceptionState&);
|
|
|
| protected:
|
| + static const int kNumSupportedUnits = 15;
|
| +
|
| LengthValue() {}
|
|
|
| virtual LengthValue* addInternal(const LengthValue* other, ExceptionState&);
|
| @@ -43,10 +45,17 @@ protected:
|
| && unit != CSSPrimitiveValue::UnitType::QuirkyEms
|
| && unit != CSSPrimitiveValue::UnitType::UserUnits;
|
| }
|
| -
|
| - static const int kNumSupportedUnits = 15;
|
| };
|
|
|
| +#define DEFINE_LENGTH_TYPE_CASTS(argumentType) \
|
| + DEFINE_TYPE_CASTS(LengthValue, argumentType, value, \
|
| + (value->type() == StyleValue::StyleValueType::SimpleLengthType \
|
| + || value->type() == StyleValue::StyleValueType::CalcLengthType), \
|
| + (value.type() == StyleValue::StyleValueType::SimpleLengthType \
|
| + || value.type() == StyleValue::StyleValueType::CalcLengthType))
|
| +
|
| +DEFINE_LENGTH_TYPE_CASTS(StyleValue);
|
| +
|
| } // namespace blink
|
|
|
| #endif
|
|
|