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

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

Issue 966923003: Make SVGLengthMode an enum class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 f8c2231290211737ceb6f7675a4239e66a30d1d7..4fa7ed24375664900ae2a6222d59660870fe50bf 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -44,10 +44,10 @@ enum SVGLengthType {
LengthTypePC
};
-enum SVGLengthMode {
- LengthModeWidth = 0,
- LengthModeHeight,
- LengthModeOther
+enum class SVGLengthMode {
+ Width,
+ Height,
+ Other
};
class SVGLengthContext {
@@ -68,7 +68,7 @@ public:
float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit) const;
float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) const;
- float valueForLength(const Length&, const LayoutStyle&, SVGLengthMode = LengthModeOther) const;
+ float valueForLength(const Length&, const LayoutStyle&, SVGLengthMode = SVGLengthMode::Other) const;
bool determineViewport(FloatSize&) const;
« 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