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

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: 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/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..58c2b1caec83686914757e00c51238c562bd4b14 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::kContentBox) {
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::kContentBox) {
value += border_and_padding.BlockSum();
} else {
value = std::max(border_and_padding.BlockSum(), value);

Powered by Google App Engine
This is Rietveld 408576698