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

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

Issue 2877333002: Make EWordBreak an enum class. (Closed)
Patch Set: Release Created 3 years, 7 months 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/LayoutText.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 103db576ad64c3eeb92207750fe8dd1e3abd7eed..31aaa37643a1651dce1a194bb558329126600d37 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1485,16 +1485,16 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EWordBreak e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kNormalWordBreak:
+ case EWordBreak::kNormal:
value_id_ = CSSValueNormal;
break;
- case kBreakAllWordBreak:
+ case EWordBreak::kBreakAll:
value_id_ = CSSValueBreakAll;
break;
- case kBreakWordBreak:
+ case EWordBreak::kBreakWord:
value_id_ = CSSValueBreakWord;
break;
- case kKeepAllWordBreak:
+ case EWordBreak::kKeepAll:
value_id_ = CSSValueKeepAll;
break;
}
@@ -1504,19 +1504,19 @@ template <>
inline EWordBreak CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueBreakAll:
- return kBreakAllWordBreak;
+ return EWordBreak::kBreakAll;
case CSSValueBreakWord:
- return kBreakWordBreak;
+ return EWordBreak::kBreakWord;
case CSSValueNormal:
- return kNormalWordBreak;
+ return EWordBreak::kNormal;
case CSSValueKeepAll:
- return kKeepAllWordBreak;
+ return EWordBreak::kKeepAll;
default:
break;
}
NOTREACHED();
- return kNormalWordBreak;
+ return EWordBreak::kNormal;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698