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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.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/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index bd748901bbd5c5f17f3e99944c07febdd67c323f..9228cfbf1a7b20f57f1b5203b3c86b28b4c71825 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -428,7 +428,7 @@ bool LayoutBlock::widthAvailableToChildrenHasChanged() {
// changed width then the width available to our children has changed even
// though our own width has remained the same.
widthAvailableToChildrenHasChanged |=
- style()->boxSizing() == BoxSizingBorderBox &&
+ style()->boxSizing() == EBoxSizing::kBorderBox &&
needsPreferredWidthsRecalculation() &&
view()->layoutState()->containingBlockLogicalWidthChanged();
@@ -541,7 +541,7 @@ bool LayoutBlock::createsNewFormattingContext() const {
static inline bool changeInAvailableLogicalHeightAffectsChild(
LayoutBlock* parent,
LayoutBox& child) {
- if (parent->style()->boxSizing() != BoxSizingBorderBox)
+ if (parent->style()->boxSizing() != EBoxSizing::kBorderBox)
return false;
return parent->style()->isHorizontalWritingMode() &&
!child.style()->isHorizontalWritingMode();

Powered by Google App Engine
This is Rietveld 408576698