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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

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
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 7a2f5486be031b2c5a5c377398182889b920dd08..a77765b37f27adab450e55f01e77333167fb3067 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1082,7 +1082,7 @@ static LayoutRect sizingBox(const LayoutObject* layoutObject) {
return LayoutRect();
const LayoutBox* box = toLayoutBox(layoutObject);
- return box->style()->boxSizing() == BoxSizingBorderBox
+ return box->style()->boxSizing() == EBoxSizing::kBorderBox
? box->borderBoxRect()
: box->computedCSSContentBoxRect();
}
@@ -2862,7 +2862,7 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
return CSSPrimitiveValue::create(style.zoom(),
CSSPrimitiveValue::UnitType::Number);
case CSSPropertyBoxSizing:
- if (style.boxSizing() == BoxSizingContentBox)
+ if (style.boxSizing() == EBoxSizing::kContentBox)
return CSSIdentifierValue::create(CSSValueContentBox);
return CSSIdentifierValue::create(CSSValueBorderBox);
case CSSPropertyWebkitAppRegion:
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698