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

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

Issue 2528203002: [LayoutNG] Correct inline size for children of multicol containers. (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_block_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
index 7dbc502c3bc2820172524bad7feaa761e3b49b18..bb388b6b341685f525d735cf9e21a7b30940e279 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
@@ -220,6 +220,11 @@ NGLayoutStatus NGBlockLayoutAlgorithm::Layout(
space_builder_ =
new NGConstraintSpaceBuilder(constraint_space_->WritingMode());
+ if (Style().specifiesColumns()) {
+ space_builder_->SetFragmentationType(FragmentColumn);
+ adjusted_inline_size =
+ ResolveUsedColumnInlineSize(adjusted_inline_size, Style());
+ }
space_builder_->SetAvailableSize(
NGLogicalSize(adjusted_inline_size, adjusted_block_size));
space_builder_->SetPercentageResolutionSize(

Powered by Google App Engine
This is Rietveld 408576698