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

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

Issue 2514273002: Changed PrintColorAdjust to an enum class and renamed its members (Closed)
Patch Set: Created 4 years, 1 month 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/paint/BoxPainter.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 b813b5ddd27437d6b9959be84545690f64f2b558..a4bfa771dd72cd730c5032915dacdca9bc68dc04 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -198,10 +198,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(PrintColorAdjust value)
: CSSValue(IdentifierClass) {
switch (value) {
- case PrintColorAdjustExact:
+ case PrintColorAdjust::Exact:
m_valueID = CSSValueExact;
break;
- case PrintColorAdjustEconomy:
+ case PrintColorAdjust::Economy:
m_valueID = CSSValueEconomy;
break;
}
@@ -211,15 +211,15 @@ template <>
inline PrintColorAdjust CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueEconomy:
- return PrintColorAdjustEconomy;
+ return PrintColorAdjust::Economy;
case CSSValueExact:
- return PrintColorAdjustExact;
+ return PrintColorAdjust::Exact;
default:
break;
}
ASSERT_NOT_REACHED();
- return PrintColorAdjustEconomy;
+ return PrintColorAdjust::Economy;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698