Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: Source/core/svg/SVGLength.h

Issue 1073803002: SVG doesn't recognize ch units. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()); }
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698