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 20f9c50f7a0d7933678007a45baee9d15bd518df..5c5767d4fa6a40a302a05f161a13f40e46a56dd7 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGLength.h |
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h |
@@ -91,6 +91,7 @@ public: |
|| (unitType >= CSSPrimitiveValue::UnitType::ViewportWidth && unitType <= CSSPrimitiveValue::UnitType::ViewportMax); |
} |
inline bool isRelative() const { return isRelativeUnit(m_value->typeWithCalcResolved()); } |
+ inline bool isPercentage() const { return m_value->typeWithCalcResolved() == CSSPrimitiveValue::UnitType::Percentage; } |
bool isZero() const |
{ |