| Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| index df7447cf6815ed8bf3f570bbaf7993286567863f..a7c607da7d88f3e2e1c4373544a27ceb410b7075 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
|
| @@ -76,6 +76,7 @@ public:
|
| Inches,
|
| Points,
|
| Picas,
|
| + UserCoordinates, // The SVG term for unitless lengths
|
| Degrees,
|
| Radians,
|
| Gradians,
|
| @@ -167,7 +168,7 @@ public:
|
| static bool isViewportPercentageLength(UnitType type) { return type >= UnitType::ViewportWidth && type <= UnitType::ViewportMax; }
|
| static bool isLength(UnitType type)
|
| {
|
| - return (type >= UnitType::Ems && type <= UnitType::Picas) || type == UnitType::QuirkyEms || type == UnitType::Rems || type == UnitType::Chs || isViewportPercentageLength(type);
|
| + return (type >= UnitType::Ems && type <= UnitType::UserCoordinates) || type == UnitType::QuirkyEms || type == UnitType::Rems || type == UnitType::Chs || isViewportPercentageLength(type);
|
| }
|
| bool isLength() const { return isLength(typeWithCalcResolved()); }
|
| bool isNumber() const { return typeWithCalcResolved() == UnitType::Number || typeWithCalcResolved() == UnitType::Integer; }
|
|
|