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

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

Issue 2681783004: Use Initial Containing Block size for vertical (Closed)
Patch Set: Final CR fixes 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 6c4137715e9ef7e7a27e9959ab9100e5ede1d54f..e298674e64c5f1ff2b92d872e7e41d1257b2abfb 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
@@ -190,6 +190,8 @@ MinAndMaxContentSizes ComputeMinAndMaxContentContribution(
// ResolveInlineLength.
NGWritingMode writing_mode = FromPlatformWritingMode(style.getWritingMode());
NGConstraintSpaceBuilder builder(writing_mode);
+ builder.SetInitialContainingBlockSize(
+ NGPhysicalSize{LayoutUnit(), LayoutUnit()});
NGConstraintSpace* space = builder.ToConstraintSpace();
MinAndMaxContentSizes computed_sizes;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_length_utils.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_units.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698