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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2507383002: Changed ETextAlign to an enum class and renamed its members to keywords (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 568f48b606c9a63d517ef996dfb24a8a6396fc25..b813b5ddd27437d6b9959be84545690f64f2b558 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2026,31 +2026,31 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(ETextAlign e)
: CSSValue(IdentifierClass) {
switch (e) {
- case TASTART:
+ case ETextAlign::Start:
m_valueID = CSSValueStart;
break;
- case TAEND:
+ case ETextAlign::End:
m_valueID = CSSValueEnd;
break;
- case LEFT:
+ case ETextAlign::Left:
m_valueID = CSSValueLeft;
break;
- case RIGHT:
+ case ETextAlign::Right:
m_valueID = CSSValueRight;
break;
- case CENTER:
+ case ETextAlign::Center:
m_valueID = CSSValueCenter;
break;
- case JUSTIFY:
+ case ETextAlign::Justify:
m_valueID = CSSValueJustify;
break;
- case WEBKIT_LEFT:
+ case ETextAlign::WebkitLeft:
m_valueID = CSSValueWebkitLeft;
break;
- case WEBKIT_RIGHT:
+ case ETextAlign::WebkitRight:
m_valueID = CSSValueWebkitRight;
break;
- case WEBKIT_CENTER:
+ case ETextAlign::WebkitCenter:
m_valueID = CSSValueWebkitCenter;
break;
}
@@ -2061,11 +2061,11 @@ inline ETextAlign CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueWebkitAuto: // Legacy -webkit-auto. Eqiuvalent to start.
case CSSValueStart:
- return TASTART;
+ return ETextAlign::Start;
case CSSValueEnd:
- return TAEND;
+ return ETextAlign::End;
case CSSValueInternalCenter:
- return CENTER;
+ return ETextAlign::Center;
default:
return static_cast<ETextAlign>(m_valueID - CSSValueLeft);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698