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

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

Issue 2508743002: Changed EWhiteSpace to an enum class and renamed its members to keywords (Closed)
Patch Set: Small mac fix 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/css/resolver/StyleAdjuster.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..9ba8c664cd029bc2898dca75836026bb8b6fab38 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2583,22 +2583,22 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EWhiteSpace e)
: CSSValue(IdentifierClass) {
switch (e) {
- case NORMAL:
+ case EWhiteSpace::Normal:
m_valueID = CSSValueNormal;
break;
- case PRE:
+ case EWhiteSpace::Pre:
m_valueID = CSSValuePre;
break;
- case PRE_WRAP:
+ case EWhiteSpace::PreWrap:
m_valueID = CSSValuePreWrap;
break;
- case PRE_LINE:
+ case EWhiteSpace::PreLine:
m_valueID = CSSValuePreLine;
break;
- case NOWRAP:
+ case EWhiteSpace::Nowrap:
m_valueID = CSSValueNowrap;
break;
- case KHTML_NOWRAP:
+ case EWhiteSpace::KhtmlNowrap:
m_valueID = CSSValueWebkitNowrap;
break;
}
@@ -2608,23 +2608,23 @@ template <>
inline EWhiteSpace CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueWebkitNowrap:
- return KHTML_NOWRAP;
+ return EWhiteSpace::KhtmlNowrap;
case CSSValueNowrap:
- return NOWRAP;
+ return EWhiteSpace::Nowrap;
case CSSValuePre:
- return PRE;
+ return EWhiteSpace::Pre;
case CSSValuePreWrap:
- return PRE_WRAP;
+ return EWhiteSpace::PreWrap;
case CSSValuePreLine:
- return PRE_LINE;
+ return EWhiteSpace::PreLine;
case CSSValueNormal:
- return NORMAL;
+ return EWhiteSpace::Normal;
default:
break;
}
ASSERT_NOT_REACHED();
- return NORMAL;
+ return EWhiteSpace::Normal;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698