Index: Source/core/css/CSSPrimitiveValue.h |
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
index 6e785bc74e11817bc4ae1d5ca9be5dd0debcfc8e..36df698d11ca0fad3b4aec0e38ca091e0817e75a 100644 |
--- a/Source/core/css/CSSPrimitiveValue.h |
+++ b/Source/core/css/CSSPrimitiveValue.h |
@@ -191,6 +191,7 @@ public: |
|| m_primitiveUnitType == CSS_REMS |
|| m_primitiveUnitType == CSS_CHS; |
} |
+ bool isViewportPercentageLength() const { return isViewportPercentageLength(static_cast<UnitType>(m_primitiveUnitType)); } |
static bool isViewportPercentageLength(UnitType type) { return type >= CSS_VW && type <= CSS_VMAX; } |
static bool isLength(UnitType type) |
{ |