Index: third_party/WebKit/Source/core/layout/ng/ng_units_test.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_units_test.cc |
index d5610fcc4bb62089b2436aff1857d9dce9182462..3a6f0e1a71d16470c17ed34973fa7c0bd812907b 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_units_test.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units_test.cc |
@@ -14,57 +14,57 @@ namespace { |
TEST(NGUnitsTest, ConvertLogicalOffsetToPhysicalOffset) { |
NGLogicalOffset logical_offset(LayoutUnit(20), LayoutUnit(30)); |
- NGPhysicalSize container_size(LayoutUnit(300), LayoutUnit(400)); |
+ NGPhysicalSize outer_size(LayoutUnit(300), LayoutUnit(400)); |
NGPhysicalSize inner_size(LayoutUnit(5), LayoutUnit(65)); |
NGPhysicalOffset offset; |
offset = logical_offset.ConvertToPhysical(HorizontalTopBottom, LeftToRight, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(20), offset.left); |
EXPECT_EQ(LayoutUnit(30), offset.top); |
offset = logical_offset.ConvertToPhysical(HorizontalTopBottom, RightToLeft, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(275), offset.left); |
EXPECT_EQ(LayoutUnit(30), offset.top); |
offset = logical_offset.ConvertToPhysical(VerticalRightLeft, LeftToRight, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(265), offset.left); |
EXPECT_EQ(LayoutUnit(20), offset.top); |
offset = logical_offset.ConvertToPhysical(VerticalRightLeft, RightToLeft, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(265), offset.left); |
EXPECT_EQ(LayoutUnit(315), offset.top); |
offset = logical_offset.ConvertToPhysical(SidewaysRightLeft, LeftToRight, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(265), offset.left); |
EXPECT_EQ(LayoutUnit(20), offset.top); |
offset = logical_offset.ConvertToPhysical(SidewaysRightLeft, RightToLeft, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(265), offset.left); |
EXPECT_EQ(LayoutUnit(315), offset.top); |
offset = logical_offset.ConvertToPhysical(VerticalLeftRight, LeftToRight, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(30), offset.left); |
EXPECT_EQ(LayoutUnit(20), offset.top); |
offset = logical_offset.ConvertToPhysical(VerticalLeftRight, RightToLeft, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(30), offset.left); |
EXPECT_EQ(LayoutUnit(315), offset.top); |
offset = logical_offset.ConvertToPhysical(SidewaysLeftRight, LeftToRight, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(30), offset.left); |
EXPECT_EQ(LayoutUnit(315), offset.top); |
offset = logical_offset.ConvertToPhysical(SidewaysLeftRight, RightToLeft, |
- container_size, inner_size); |
+ outer_size, inner_size); |
EXPECT_EQ(LayoutUnit(30), offset.left); |
EXPECT_EQ(LayoutUnit(20), offset.top); |
} |