Index: Source/core/svg/SVGLength.h |
diff --git a/Source/core/svg/SVGLength.h b/Source/core/svg/SVGLength.h |
index 50de4436c854b1c5e15b342c41382a6bddbca9f6..3d2fe9e4f412e203f1afc9af25ef1ebc904ca951 100644 |
--- a/Source/core/svg/SVGLength.h |
+++ b/Source/core/svg/SVGLength.h |
@@ -55,6 +55,10 @@ public: |
{ |
if (m_unitType == LengthTypeNumber) |
return CSSPrimitiveValue::UnitType::CSS_PX; |
+ |
+ if (m_unitType == LengthTypeREMS) |
+ return CSSPrimitiveValue::UnitType::CSS_REMS; |
+ |
return static_cast<CSSPrimitiveValue::UnitType>(m_unitType); |
} |
void setUnitType(SVGLengthType); |
@@ -89,7 +93,8 @@ public: |
{ |
return unitType == LengthTypePercentage |
|| unitType == LengthTypeEMS |
- || unitType == LengthTypeEXS; |
+ || unitType == LengthTypeEXS |
+ || unitType == LengthTypeREMS; |
} |
inline bool isRelative() const { return isRelativeUnit(unitType()); } |