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

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

Issue 2555923002: Changed TextDirection to an enum class and renamed its members (Closed)
Patch Set: Rebase after reopen Created 4 years 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 d4bfe6956b45fd1ed99b78f346d868c530cbc9b4..b3a9ef8cd415d3074b3e7e51cd08310ec5018ada 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
@@ -273,8 +273,8 @@ TEST_F(NGLengthUtilsTest, testMargins) {
NGConstraintSpace* constraintSpace(ConstructConstraintSpace(200, 300));
- NGBoxStrut margins =
- ComputeMargins(*constraintSpace, *style_, kHorizontalTopBottom, LTR);
+ NGBoxStrut margins = ComputeMargins(*constraintSpace, *style_,
+ kHorizontalTopBottom, TextDirection::Ltr);
EXPECT_EQ(LayoutUnit(20), margins.block_start);
EXPECT_EQ(LayoutUnit(52), margins.inline_end);
@@ -325,8 +325,8 @@ TEST_F(NGLengthUtilsTest, testAutoMargins) {
NGFragmentBuilder builder(NGPhysicalFragmentBase::kFragmentBox);
builder.SetInlineSize(LayoutUnit(150));
NGPhysicalFragment* physical_fragment = builder.ToFragment();
- NGFragment* fragment =
- new NGFragment(kHorizontalTopBottom, LTR, physical_fragment);
+ NGFragment* fragment = new NGFragment(kHorizontalTopBottom,
+ TextDirection::Ltr, physical_fragment);
NGConstraintSpace* constraint_space(ConstructConstraintSpace(200, 300));

Powered by Google App Engine
This is Rietveld 408576698