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

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

Issue 2516263002: Changed ETextTransform to an enum class and renamed its members (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/layout/LayoutObject.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 b813b5ddd27437d6b9959be84545690f64f2b558..559cecfddfd0d53cad8d71bfc4c3308351e602dc 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2293,16 +2293,16 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(ETextTransform e)
: CSSValue(IdentifierClass) {
switch (e) {
- case CAPITALIZE:
+ case ETextTransform::Capitalize:
m_valueID = CSSValueCapitalize;
break;
- case UPPERCASE:
+ case ETextTransform::Uppercase:
m_valueID = CSSValueUppercase;
break;
- case LOWERCASE:
+ case ETextTransform::Lowercase:
m_valueID = CSSValueLowercase;
break;
- case TTNONE:
+ case ETextTransform::None:
m_valueID = CSSValueNone;
break;
}
@@ -2312,19 +2312,19 @@ template <>
inline ETextTransform CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueCapitalize:
- return CAPITALIZE;
+ return ETextTransform::Capitalize;
case CSSValueUppercase:
- return UPPERCASE;
+ return ETextTransform::Uppercase;
case CSSValueLowercase:
- return LOWERCASE;
+ return ETextTransform::Lowercase;
case CSSValueNone:
- return TTNONE;
+ return ETextTransform::None;
default:
break;
}
ASSERT_NOT_REACHED();
- return TTNONE;
+ return ETextTransform::None;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698