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

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

Issue 2882903002: Make EOverflowWrap an enum class. (Closed)
Patch Set: Rebase 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/LayoutTextControl.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 e1d9a5f57f7554a5485f31357c23d48e9ea60648..1fc487365f0f4df8cbd52ee1f9551feb9407c781 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1523,10 +1523,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EOverflowWrap e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kNormalOverflowWrap:
+ case EOverflowWrap::kNormal:
value_id_ = CSSValueNormal;
break;
- case kBreakOverflowWrap:
+ case EOverflowWrap::kBreakWord:
value_id_ = CSSValueBreakWord;
break;
}
@@ -1536,15 +1536,15 @@ template <>
inline EOverflowWrap CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueBreakWord:
- return kBreakOverflowWrap;
+ return EOverflowWrap::kBreakWord;
case CSSValueNormal:
- return kNormalOverflowWrap;
+ return EOverflowWrap::kNormal;
default:
break;
}
NOTREACHED();
- return kNormalOverflowWrap;
+ return EOverflowWrap::kNormal;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698