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

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

Issue 2653123002: Changed EClear to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 11 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/LayoutBlock.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 4ef594d0ed580eea2f77c27f153e3aaf160967b5..f3611ed976bca542116393e9f4a2054d8bf8d857 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -964,16 +964,16 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EClear e)
: CSSValue(IdentifierClass) {
switch (e) {
- case ClearNone:
+ case EClear::kNone:
m_valueID = CSSValueNone;
break;
- case ClearLeft:
+ case EClear::kLeft:
m_valueID = CSSValueLeft;
break;
- case ClearRight:
+ case EClear::kRight:
m_valueID = CSSValueRight;
break;
- case ClearBoth:
+ case EClear::kBoth:
m_valueID = CSSValueBoth;
break;
}
@@ -983,19 +983,19 @@ template <>
inline EClear CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueNone:
- return ClearNone;
+ return EClear::kNone;
case CSSValueLeft:
- return ClearLeft;
+ return EClear::kLeft;
case CSSValueRight:
- return ClearRight;
+ return EClear::kRight;
case CSSValueBoth:
- return ClearBoth;
+ return EClear::kBoth;
default:
break;
}
ASSERT_NOT_REACHED();
- return ClearNone;
+ return EClear::kNone;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698