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

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: Small rebase fixes 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/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 38f4765ae70fbb4384f79bddb1b295296f421226..4c6eea4fd2f38da711d0f5f44f42b9fc5b6b3411 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2811,10 +2811,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;
}
@@ -2824,15 +2824,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 <>

Powered by Google App Engine
This is Rietveld 408576698