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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc

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/layout/ng/ng_length_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
index f0586ea9266bb703199f344809fadbe067b54b14..88d9d8de6ed4ed8a85b1bc14f725e0bcbdb69a51 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
@@ -74,7 +74,7 @@ LayoutUnit ResolveInlineLength(
LayoutUnit percentage_resolution_size =
constraint_space.PercentageResolutionSize().inline_size;
LayoutUnit value = valueForLength(length, percentage_resolution_size);
- if (style.boxSizing() == BoxSizingContentBox) {
+ if (style.boxSizing() == EBoxSizing::ContentBox) {
value += border_and_padding.InlineSum();
} else {
value = std::max(border_and_padding.InlineSum(), value);
@@ -155,7 +155,7 @@ LayoutUnit ResolveBlockLength(const NGConstraintSpace& constraint_space,
LayoutUnit percentage_resolution_size =
constraint_space.PercentageResolutionSize().block_size;
LayoutUnit value = valueForLength(length, percentage_resolution_size);
- if (style.boxSizing() == BoxSizingContentBox) {
+ if (style.boxSizing() == EBoxSizing::ContentBox) {
value += border_and_padding.BlockSum();
} else {
value = std::max(border_and_padding.BlockSum(), value);

Powered by Google App Engine
This is Rietveld 408576698