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

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: Align with review comments Created 5 years, 9 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
Index: Source/core/svg/SVGLengthContext.h
diff --git a/Source/core/svg/SVGLengthContext.h b/Source/core/svg/SVGLengthContext.h
index 5642edb2db1cab31f98bd28a3cd3fb74db5b08a4..1e4d24c112e8e7ff261d3fbc547cc5f3d99c3544 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;
};

Powered by Google App Engine
This is Rietveld 408576698