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..1da7b3602078d32e4aae0992100272208b2adfa1 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, |
+ UserUnits, // 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::UserUnits) || 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; } |