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

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

Issue 2561973002: Changed EOverflowAnchor to an enum class and renamed its members (Closed)
Patch Set: 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/dom/Document.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 a270ca7de775e5cc9069b4cb55a846f5452fc549..84f09b511594b89d34757f622a0924e735c2bf83 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2791,13 +2791,13 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EOverflowAnchor e)
: CSSValue(IdentifierClass) {
switch (e) {
- case AnchorVisible:
+ case EOverflowAnchor::Visible:
m_valueID = CSSValueVisible;
break;
- case AnchorNone:
+ case EOverflowAnchor::None:
m_valueID = CSSValueNone;
break;
- case AnchorAuto:
+ case EOverflowAnchor::Auto:
m_valueID = CSSValueAuto;
break;
}
@@ -2807,17 +2807,17 @@ template <>
inline EOverflowAnchor CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueVisible:
- return AnchorVisible;
+ return EOverflowAnchor::Visible;
case CSSValueNone:
- return AnchorNone;
+ return EOverflowAnchor::None;
case CSSValueAuto:
- return AnchorAuto;
+ return EOverflowAnchor::Auto;
default:
break;
}
NOTREACHED();
- return AnchorNone;
+ return EOverflowAnchor::None;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698