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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_length_utils.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_length_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
index 9aa9f6b24d6f90f5802fcc6a862bf64be2f0cecf..2f5d30c92f6d58825216ae265c79bd6298e755a7 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
@@ -192,7 +192,7 @@ MinAndMaxContentSizes ComputeMinAndMaxContentContribution(
NGConstraintSpaceBuilder builder(writing_mode);
builder.SetInitialContainingBlockSize(
NGPhysicalSize{LayoutUnit(), LayoutUnit()});
- NGConstraintSpace* space = builder.ToConstraintSpace(writing_mode);
+ RefPtr<NGConstraintSpace> space = builder.ToConstraintSpace(writing_mode);
MinAndMaxContentSizes computed_sizes;
Length inline_size = style.logicalWidth();

Powered by Google App Engine
This is Rietveld 408576698