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

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

Issue 2635143002: Changed EBoxSizing to an enum class and renamed its members (Closed)
Patch Set: Aded k prefix 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/css/ComputedStyleCSSValueMapping.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 e3ded2530d7b0bb14b86f1dd6cd45185c70d4c0c..6f43e93271240cfeec969f471e4693838f215024 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -812,10 +812,10 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EBoxSizing e)
: CSSValue(IdentifierClass) {
switch (e) {
- case BoxSizingBorderBox:
+ case EBoxSizing::kBorderBox:
m_valueID = CSSValueBorderBox;
break;
- case BoxSizingContentBox:
+ case EBoxSizing::kContentBox:
m_valueID = CSSValueContentBox;
break;
}
@@ -825,15 +825,15 @@ template <>
inline EBoxSizing CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueBorderBox:
- return BoxSizingBorderBox;
+ return EBoxSizing::kBorderBox;
case CSSValueContentBox:
- return BoxSizingContentBox;
+ return EBoxSizing::kContentBox;
default:
break;
}
ASSERT_NOT_REACHED();
- return BoxSizingBorderBox;
+ return EBoxSizing::kBorderBox;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698