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

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

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/SVGLengthContext.h ('k') | Source/core/svg/SVGLengthList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.cpp
diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp
index d3c537291c19a43229131a3c3e7700ba6bac1d93..4f229d37b1ff000f0601d32346b4a59b73e4cd05 100644
--- a/Source/core/svg/SVGLengthContext.cpp
+++ b/Source/core/svg/SVGLengthContext.cpp
@@ -35,11 +35,11 @@ namespace blink {
static inline float dimensionForLengthMode(SVGLengthMode mode, const FloatSize& viewportSize)
{
switch (mode) {
- case LengthModeWidth:
+ case SVGLengthMode::Width:
return viewportSize.width();
- case LengthModeHeight:
+ case SVGLengthMode::Height:
return viewportSize.height();
- case LengthModeOther:
+ case SVGLengthMode::Other:
return sqrtf(viewportSize.diagonalLengthSquared() / 2);
}
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/core/svg/SVGLengthContext.h ('k') | Source/core/svg/SVGLengthList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698