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

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

Issue 2299823002: [LayoutNG] Merge NGDerivedConstraintSpace into NGConstraintSpace (Closed)
Patch Set: Fix copy constructors Created 4 years, 4 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_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 a4a77c0b29ca41be579feb73cea607c767d42b1b..0b4fb332d71c77d3ac436fd367f5625a9f8b48c4 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
@@ -30,8 +30,9 @@ bool NGBlockLayoutAlgorithm::Layout(const NGConstraintSpace* constraint_space,
// -1?
LayoutUnit block_size = computeBlockSizeForFragment(
*constraint_space, *style_, LayoutUnit(-1));
- constraint_space_for_children_ = new NGConstraintSpace(
- *constraint_space, NGLogicalSize(inline_size, block_size));
+ constraint_space_for_children_ =
+ new NGConstraintSpace(*constraint_space, NGLogicalOffset(),
+ NGLogicalSize(inline_size, block_size));
content_size_ = LayoutUnit();
builder_ = new NGFragmentBuilder(NGPhysicalFragmentBase::FragmentBox);

Powered by Google App Engine
This is Rietveld 408576698