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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.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_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
index 100b2cfd0fb88c45c90aebd46847252b066b1c8d..d38730829069895e4ed7a045317da037e52f9979 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
@@ -169,7 +169,7 @@ TEST_F(NGLengthUtilsTest, testComputeContentContribution) {
EXPECT_EQ(expected, ComputeMinAndMaxContentContribution(*style_, sizes));
expected = MinAndMaxContentSizes{LayoutUnit(100), LayoutUnit(100)};
- style_->setBoxSizing(BoxSizingBorderBox);
+ style_->setBoxSizing(EBoxSizing::kBorderBox);
EXPECT_EQ(expected, ComputeMinAndMaxContentContribution(*style_, sizes));
// Content size should never be below zero, even with box-sizing: border-box
@@ -235,7 +235,7 @@ TEST_F(NGLengthUtilsTest, testComputeInlineSizeForFragment) {
style_->setPaddingLeft(Length(50, Fixed));
EXPECT_EQ(LayoutUnit(150), ComputeInlineSizeForFragment());
- style_->setBoxSizing(BoxSizingBorderBox);
+ style_->setBoxSizing(EBoxSizing::kBorderBox);
EXPECT_EQ(LayoutUnit(100), ComputeInlineSizeForFragment());
// Content size should never be below zero, even with box-sizing: border-box
@@ -306,7 +306,7 @@ TEST_F(NGLengthUtilsTest, testComputeBlockSizeForFragment) {
style_->setPaddingBottom(Length(50, Fixed));
EXPECT_EQ(LayoutUnit(150), ComputeBlockSizeForFragment());
- style_->setBoxSizing(BoxSizingBorderBox);
+ style_->setBoxSizing(EBoxSizing::kBorderBox);
EXPECT_EQ(LayoutUnit(100), ComputeBlockSizeForFragment());
// Content size should never be below zero, even with box-sizing: border-box

Powered by Google App Engine
This is Rietveld 408576698