Index: Source/core/svg/SVGLength.h |
diff --git a/Source/core/svg/SVGLength.h b/Source/core/svg/SVGLength.h |
index 3d2fe9e4f412e203f1afc9af25ef1ebc904ca951..b228627f63c79aa57386ce2a89cece9349166cda 100644 |
--- a/Source/core/svg/SVGLength.h |
+++ b/Source/core/svg/SVGLength.h |
@@ -58,6 +58,8 @@ public: |
if (m_unitType == LengthTypeREMS) |
return CSSPrimitiveValue::UnitType::CSS_REMS; |
+ if (m_unitType == LengthTypeCHS) |
+ return CSSPrimitiveValue::UnitType::CSS_CHS; |
return static_cast<CSSPrimitiveValue::UnitType>(m_unitType); |
} |
@@ -94,7 +96,8 @@ public: |
return unitType == LengthTypePercentage |
|| unitType == LengthTypeEMS |
|| unitType == LengthTypeEXS |
- || unitType == LengthTypeREMS; |
+ || unitType == LengthTypeREMS |
+ || unitType == LengthTypeCHS; |
} |
inline bool isRelative() const { return isRelativeUnit(unitType()); } |