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

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

Issue 2244463003: [layoutng] Bidirectional interoperability between layoutng and legacy layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Positioning 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 ba6d02ee6400d7caba488e7cdcf79c1e125738d1..b66e1967aa737344d900025f1c0fcd08555507e9 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
@@ -29,6 +29,7 @@ NGFragment* NGBlockLayoutAlgorithm::layout(
NGFragment* fragment = box.layout(constraintSpace);
// TODO(layout-ng): Take margins into account
fragment->setOffset(LayoutUnit(), contentSize);
+ box.positionUpdated(*fragment);
contentSize += fragment->blockSize();
childFragments.append(fragment);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_box.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698