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

Unified Diff: Source/core/svg/SVGLengthContext.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/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.h
diff --git a/Source/core/svg/SVGLengthContext.h b/Source/core/svg/SVGLengthContext.h
index 81c32d33f686234abd208f101ba632abeeb7c493..93a406481b6c417e09aa3425938a537255036ff4 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -43,7 +43,8 @@ enum SVGLengthType {
LengthTypeIN,
LengthTypePT,
LengthTypePC,
- LengthTypeREMS
+ LengthTypeREMS,
+ LengthTypeCHS
};
enum class SVGLengthMode {
@@ -83,6 +84,9 @@ private:
float convertValueFromUserUnitsToEXS(float value) const;
float convertValueFromEXSToUserUnits(float value) const;
+ float convertValueFromUserUnitsToCHS(float value) const;
+ float convertValueFromCHSToUserUnits(float value) const;
+
RawPtrWillBeMember<const SVGElement> m_context;
};
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698