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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperty.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 0c7b7cddc42ac40716c54786b2f432749bf59aac..e1419f07e129e00c3cab6215525b6b082fcdb75d 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2852,10 +2852,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(TextDirection e)
: CSSValue(IdentifierClass) {
switch (e) {
- case LTR:
+ case TextDirection::Ltr:
m_valueID = CSSValueLtr;
break;
- case RTL:
+ case TextDirection::Rtl:
m_valueID = CSSValueRtl;
break;
}
@@ -2865,15 +2865,15 @@ template <>
inline TextDirection CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueLtr:
- return LTR;
+ return TextDirection::Ltr;
case CSSValueRtl:
- return RTL;
+ return TextDirection::Rtl;
default:
break;
}
ASSERT_NOT_REACHED();
- return LTR;
+ return TextDirection::Ltr;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698