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

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

Issue 2850893003: Add container_block_offset,top_offset to NGFloatingObject. (Closed)
Patch Set: Created 3 years, 8 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 96402b5f64b35d33df7bb8377a1409ecae153d5f..43994eb246673ca3b28d2499c45e37fab52f8e11 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
@@ -79,7 +79,7 @@ void FloatingObjectPositionedUpdated(NGFloatingObject* ng_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->SetY(ng_floating_object->top_offset);
floating_object->SetIsPlaced(true);
floating_object->SetIsInPlacedTree(true);
}

Powered by Google App Engine
This is Rietveld 408576698