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

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

Issue 2525033002: Deprecate NGPhysicalConstraintSpace (Closed)
Patch Set: Created 4 years, 1 month 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_absolute_utils_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc
index becc4f9831e03fde9f36cea134d5e66f52403fef..f76bc2027b4789a4388ab4cbb37c7244660dd315 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc
@@ -26,18 +26,22 @@ class NGAbsoluteUtilsTest : public ::testing::Test {
style_->setBoxSizing(EBoxSizing::BoxSizingBorderBox);
container_size_ = NGLogicalSize(LayoutUnit(200), LayoutUnit(300));
NGConstraintSpaceBuilder builder(HorizontalTopBottom);
- ltr_space_ = new NGConstraintSpace(
- HorizontalTopBottom, LTR,
- builder.SetAvailableSize(container_size_).ToConstraintSpace());
- rtl_space_ = new NGConstraintSpace(
- HorizontalTopBottom, RTL,
- builder.SetAvailableSize(container_size_).ToConstraintSpace());
- vertical_lr_space_ = new NGConstraintSpace(
- VerticalLeftRight, LTR,
- builder.SetAvailableSize(container_size_).ToConstraintSpace());
- vertical_rl_space_ = new NGConstraintSpace(
- VerticalLeftRight, LTR,
- builder.SetAvailableSize(container_size_).ToConstraintSpace());
+ ltr_space_ = NGConstraintSpaceBuilder(HorizontalTopBottom)
+ .SetAvailableSize(container_size_)
+ .SetTextDirection(LTR)
+ .ToConstraintSpace();
+ rtl_space_ = NGConstraintSpaceBuilder(HorizontalTopBottom)
+ .SetAvailableSize(container_size_)
+ .SetTextDirection(RTL)
+ .ToConstraintSpace();
+ vertical_lr_space_ = NGConstraintSpaceBuilder(VerticalLeftRight)
+ .SetAvailableSize(container_size_)
+ .SetTextDirection(LTR)
+ .ToConstraintSpace();
+ vertical_rl_space_ = NGConstraintSpaceBuilder(VerticalLeftRight)
+ .SetAvailableSize(container_size_)
+ .SetTextDirection(LTR)
+ .ToConstraintSpace();
}
void SetHorizontalStyle(LayoutUnit left,

Powered by Google App Engine
This is Rietveld 408576698