Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc |
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc |
| index a43f46e402149359aa6448e1b123b0f950564d80..a21d6f3764e80de26c56bf71ab49014db8b82211 100644 |
| --- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc |
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc |
| @@ -6,6 +6,7 @@ |
| #include "core/layout/ng/ng_constraint_space.h" |
| #include "core/layout/ng/ng_layout_opportunity_iterator.h" |
| +#include "core/layout/ng/ng_physical_constraint_space.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| namespace blink { |
| @@ -13,15 +14,15 @@ namespace blink { |
| namespace { |
| TEST(NGConstraintSpaceTest, WritingMode) { |
| + NGPhysicalConstraintSpace* phy_space = new NGPhysicalConstraintSpace( |
| + NGPhysicalSize(LayoutUnit(200), LayoutUnit(100)), true, false, true, |
|
Gleb Lanbin
2016/10/27 22:29:54
can you add comments for every bool here? and belo
ikilpatrick
2016/10/27 23:54:52
Done.
|
| + false, FragmentNone, FragmentColumn, false); |
| + |
| NGConstraintSpace* horz_space = |
| - new NGConstraintSpace(HorizontalTopBottom, LeftToRight, |
| - NGLogicalSize(LayoutUnit(200), LayoutUnit(100))); |
| - horz_space->SetOverflowTriggersScrollbar(true, false); |
| - horz_space->SetFixedSize(true, false); |
| - horz_space->SetFragmentationType(FragmentColumn); |
| - |
| - NGConstraintSpace* vert_space = new NGConstraintSpace( |
| - VerticalRightLeft, LeftToRight, horz_space->MutablePhysicalSpace()); |
| + new NGConstraintSpace(HorizontalTopBottom, LeftToRight, phy_space); |
| + |
| + NGConstraintSpace* vert_space = |
| + new NGConstraintSpace(VerticalRightLeft, LeftToRight, phy_space); |
| EXPECT_EQ(LayoutUnit(200), horz_space->ContainerSize().inline_size); |
| EXPECT_EQ(LayoutUnit(200), vert_space->ContainerSize().block_size); |