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

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

Issue 1031223003: SVG doesn't recognize rem units (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes builderror 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 43bc3e6cf44aaa0bcd7a52b2e96d7f59b48e645d..3e2ba449e39ff51955464b4e114178830188c6b6 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -42,7 +42,8 @@ enum SVGLengthType {
LengthTypeMM,
LengthTypeIN,
LengthTypePT,
- LengthTypePC
+ LengthTypePC,
+ LengthTypeREMS
};
enum class SVGLengthMode {
@@ -85,6 +86,9 @@ private:
float convertValueFromUserUnitsToEXS(float value) const;
float convertValueFromEXSToUserUnits(float value) const;
+ float convertValueFromUserUnitsToREMS(float value) const;
+ float convertValueFromREMSToUserUnits(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