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

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

Issue 2885363005: Make Hyphens an enum class. (Closed)
Patch Set: 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 e1d9a5f57f7554a5485f31357c23d48e9ea60648..c3e25675969b338e3fb8626f200fe38cff13c4ba 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -877,13 +877,13 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(Hyphens e)
: CSSValue(kIdentifierClass) {
switch (e) {
- case kHyphensAuto:
+ case Hyphens::kAuto:
value_id_ = CSSValueAuto;
break;
- case kHyphensManual:
+ case Hyphens::kManual:
value_id_ = CSSValueManual;
break;
- case kHyphensNone:
+ case Hyphens::kNone:
value_id_ = CSSValueNone;
break;
}
@@ -893,17 +893,17 @@ template <>
inline Hyphens CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueAuto:
- return kHyphensAuto;
+ return Hyphens::kAuto;
case CSSValueManual:
- return kHyphensManual;
+ return Hyphens::kManual;
case CSSValueNone:
- return kHyphensNone;
+ return Hyphens::kNone;
default:
break;
}
NOTREACHED();
- return kHyphensManual;
+ return Hyphens::kManual;
}
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