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

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

Issue 2850893003: Add container_block_offset,top_offset to NGFloatingObject. (Closed)
Patch Set: add-inline-to-block-flow-with-block-children-that-do-not-need-anonymous-boxes.html is still broken Created 3 years, 7 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_fragment_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
index e75e3ca158fcbd8fb7668cea5aef5c1ba2d7dc99..2e7ead087095c8acb6dffe1a2ba357fca206ead6 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
@@ -198,8 +198,10 @@ RefPtr<NGLayoutResult> NGFragmentBuilder::ToBoxFragment() {
for (auto& positioned_float : positioned_floats_) {
NGPhysicalFragment* floating_fragment = positioned_float.fragment.Get();
- floating_fragment->SetOffset(positioned_float.offset.ConvertToPhysical(
- writing_mode_, direction_, physical_size, floating_fragment->Size()));
+ floating_fragment->SetOffset(
+ positioned_float.logical_offset.ConvertToPhysical(
+ writing_mode_, direction_, physical_size,
+ floating_fragment->Size()));
}
RefPtr<NGPhysicalBoxFragment> fragment = AdoptRef(new NGPhysicalBoxFragment(

Powered by Google App Engine
This is Rietveld 408576698