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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2578403002: Changed EVerticalAlign to an enum class and renamed its members (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index a6a30d6339df8efb9a681f30fd9726d1dab180c8..e7c58fdf5e4aee6658a61dce262c897644f5a907 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2795,25 +2795,25 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
return CSSIdentifierValue::create(style.unicodeBidi());
case CSSPropertyVerticalAlign:
switch (style.verticalAlign()) {
- case VerticalAlignBaseline:
+ case EVerticalAlign::Baseline:
return CSSIdentifierValue::create(CSSValueBaseline);
- case VerticalAlignMiddle:
+ case EVerticalAlign::Middle:
return CSSIdentifierValue::create(CSSValueMiddle);
- case VerticalAlignSub:
+ case EVerticalAlign::Sub:
return CSSIdentifierValue::create(CSSValueSub);
- case VerticalAlignSuper:
+ case EVerticalAlign::Super:
return CSSIdentifierValue::create(CSSValueSuper);
- case VerticalAlignTextTop:
+ case EVerticalAlign::TextTop:
return CSSIdentifierValue::create(CSSValueTextTop);
- case VerticalAlignTextBottom:
+ case EVerticalAlign::TextBottom:
return CSSIdentifierValue::create(CSSValueTextBottom);
- case VerticalAlignTop:
+ case EVerticalAlign::Top:
return CSSIdentifierValue::create(CSSValueTop);
- case VerticalAlignBottom:
+ case EVerticalAlign::Bottom:
return CSSIdentifierValue::create(CSSValueBottom);
- case VerticalAlignBaselineMiddle:
+ case EVerticalAlign::BaselineMiddle:
return CSSIdentifierValue::create(CSSValueWebkitBaselineMiddle);
- case VerticalAlignLength:
+ case EVerticalAlign::Length:
return zoomAdjustedPixelValueForLength(style.getVerticalAlignLength(),
style);
}

Powered by Google App Engine
This is Rietveld 408576698