Index: third_party/WebKit/Source/core/svg/SVGLength.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.h b/third_party/WebKit/Source/core/svg/SVGLength.h |
index dc17da63b7dd8a0287e64bd0480698b836db37f5..d1463e64eb81594fad54d194dd14695296510271 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGLength.h |
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h |
@@ -87,7 +87,8 @@ public: |
|| unitType == CSSPrimitiveValue::UnitType::Ems |
|| unitType == CSSPrimitiveValue::UnitType::Exs |
|| unitType == CSSPrimitiveValue::UnitType::Rems |
- || unitType == CSSPrimitiveValue::UnitType::Chs; |
+ || unitType == CSSPrimitiveValue::UnitType::Chs |
+ || (unitType >= CSSPrimitiveValue::UnitType::ViewportWidth && unitType <= CSSPrimitiveValue::UnitType::ViewportMax); |
} |
inline bool isRelative() const { return isRelativeUnit(m_value->typeWithCalcResolved()); } |