| Index: third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h b/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
|
| index d8a5fcfd6558e8e839018dd214adbf0c28619772..dddf4a57d2c54e96affd98e48c94ad915d284731 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
|
| +++ b/third_party/WebKit/Source/core/css/cssom/StyleCalcLength.h
|
| @@ -50,6 +50,19 @@ public:
|
|
|
| bool containsPercent() const override;
|
|
|
| + bool isRelative() const override
|
| + {
|
| + return has(CSSPrimitiveValue::UnitType::Percentage)
|
| + || has(CSSPrimitiveValue::UnitType::Ems)
|
| + || has(CSSPrimitiveValue::UnitType::Exs)
|
| + || has(CSSPrimitiveValue::UnitType::Chs)
|
| + || has(CSSPrimitiveValue::UnitType::Rems)
|
| + || has(CSSPrimitiveValue::UnitType::ViewportWidth)
|
| + || has(CSSPrimitiveValue::UnitType::ViewportHeight)
|
| + || has(CSSPrimitiveValue::UnitType::ViewportMin)
|
| + || has(CSSPrimitiveValue::UnitType::ViewportMax);
|
| + }
|
| +
|
| PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const override;
|
|
|
| StyleValueType type() const override { return CalcLengthType; }
|
|
|