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

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: 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
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..6070c6c28b91301d6f093cfe9e40951c2b833136 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::BorderBox:
m_valueID = CSSValueBorderBox;
break;
- case BoxSizingContentBox:
+ case EBoxSizing::ContentBox:
m_valueID = CSSValueContentBox;
break;
}
@@ -825,15 +825,15 @@ template <>
inline EBoxSizing CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueBorderBox:
- return BoxSizingBorderBox;
+ return EBoxSizing::BorderBox;
case CSSValueContentBox:
- return BoxSizingContentBox;
+ return EBoxSizing::ContentBox;
default:
break;
}
ASSERT_NOT_REACHED();
- return BoxSizingBorderBox;
+ return EBoxSizing::BorderBox;
}
template <>

Powered by Google App Engine
This is Rietveld 408576698