| Index: third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGLength.cpp b/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| index 924008740a21cea8529aa362278de5ee99d5ebba..1302a03035d5dc0eec1ebf0723b8b2b275b89bd1 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGLength.cpp
|
| @@ -102,7 +102,8 @@ bool isSupportedCSSUnitType(CSSPrimitiveValue::UnitType type)
|
| return type != CSSPrimitiveValue::UnitType::Unknown
|
| && (type <= CSSPrimitiveValue::UnitType::UserUnits
|
| || type == CSSPrimitiveValue::UnitType::Chs
|
| - || type == CSSPrimitiveValue::UnitType::Rems);
|
| + || type == CSSPrimitiveValue::UnitType::Rems
|
| + || (type >= CSSPrimitiveValue::UnitType::ViewportWidth && type <= CSSPrimitiveValue::UnitType::ViewportMax));
|
| }
|
|
|
| void SVGLength::setUnitType(CSSPrimitiveValue::UnitType type)
|
|
|