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

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

Issue 2724133003: [LayoutNG] Switch NGConstraintSpace to being RefCounted. (Closed)
Patch Set: moar. Created 3 years, 10 months 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_constraint_space_builder_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc
index 1c85d75bb52b6e84ac9ac17ff7db956616bda0bd..3a628fc367bab40ae92d145bdf3433dbce60b5fc 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc
@@ -33,11 +33,11 @@ TEST(NGConstraintSpaceBuilderTest, AvailableSizeFromHorizontalICB) {
horizontal_builder.SetPercentageResolutionSize(fixed_size);
NGConstraintSpaceBuilder vertical_builder(
- horizontal_builder.ToConstraintSpace(kHorizontalTopBottom));
+ horizontal_builder.ToConstraintSpace(kHorizontalTopBottom).get());
vertical_builder.SetAvailableSize(indefinite_size);
vertical_builder.SetPercentageResolutionSize(indefinite_size);
- NGConstraintSpace* space =
+ RefPtr<NGConstraintSpace> space =
vertical_builder.ToConstraintSpace(kVerticalLeftRight);
EXPECT_EQ(space->AvailableSize().inline_size, icb_size.height);
@@ -57,11 +57,11 @@ TEST(NGConstraintSpaceBuilderTest, AvailableSizeFromVerticalICB) {
horizontal_builder.SetPercentageResolutionSize(fixed_size);
NGConstraintSpaceBuilder vertical_builder(
- horizontal_builder.ToConstraintSpace(kVerticalLeftRight));
+ horizontal_builder.ToConstraintSpace(kVerticalLeftRight).get());
vertical_builder.SetAvailableSize(indefinite_size);
vertical_builder.SetPercentageResolutionSize(indefinite_size);
- NGConstraintSpace* space =
+ RefPtr<NGConstraintSpace> space =
vertical_builder.ToConstraintSpace(kHorizontalTopBottom);
EXPECT_EQ(space->AvailableSize().inline_size, icb_size.width);

Powered by Google App Engine
This is Rietveld 408576698