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

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

Issue 2525033002: Deprecate NGPhysicalConstraintSpace (Closed)
Patch Set: update TestExpectations 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 205f524a9c46bae121723fcc504344fcaf33cd83..d4bfe6956b45fd1ed99b78f346d868c530cbc9b4 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
@@ -28,17 +28,14 @@ class NGLengthUtilsTest : public ::testing::Test {
int block_size,
bool fixed_inline = false,
bool fixed_block = false) {
- NGConstraintSpaceBuilder builder(kHorizontalTopBottom);
- builder
+ return NGConstraintSpaceBuilder(kHorizontalTopBottom)
.SetAvailableSize(
NGLogicalSize(LayoutUnit(inline_size), LayoutUnit(block_size)))
.SetPercentageResolutionSize(
NGLogicalSize(LayoutUnit(inline_size), LayoutUnit(block_size)))
.SetIsFixedSizeInline(fixed_inline)
- .SetIsFixedSizeBlock(fixed_block);
-
- return new NGConstraintSpace(kHorizontalTopBottom, LTR,
- builder.ToConstraintSpace());
+ .SetIsFixedSizeBlock(fixed_block)
+ .ToConstraintSpace();
}
LayoutUnit ResolveInlineLength(

Powered by Google App Engine
This is Rietveld 408576698