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

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

Issue 2755143003: [LayoutNG] Make NGLineBuilder work with inline floats (Closed)
Patch Set: make setIsInPlacedTree to be available for LayoutNG Created 3 years, 9 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_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
index d1520dfe3945f59a03bd0dfc8f2116cae5eea233..709418b065560c2b3aa87bc89db0ad58620113c1 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
@@ -62,9 +62,11 @@ void FloatingObjectPositionedUpdated(NGFloatingObject* ng_floating_object,
if (parent && parent->isLayoutBlockFlow()) {
FloatingObject* floating_object =
toLayoutBlockFlow(parent)->insertFloatingObject(*layout_box);
+ floating_object->setIsInPlacedTree(false);
floating_object->setX(ng_floating_object->left_offset);
floating_object->setY(box_fragment->TopOffset());
floating_object->setIsPlaced(true);
+ floating_object->setIsInPlacedTree(true);
}
}

Powered by Google App Engine
This is Rietveld 408576698