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

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

Issue 2872593003: [LayoutNG] Introduce NGPositionedFloat. (Closed)
Patch Set: address comments. 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/inline/ng_inline_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc
index d99a083a6a3f9d68818c176646be1dbe5b9c46a6..827ec6a991c3925c7aa8ce8da9e8c3668aed33cc 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc
@@ -393,9 +393,8 @@ void NGInlineLayoutAlgorithm::LayoutAndPositionFloat(
float_does_not_fit) {
container_builder_.AddUnpositionedFloat(floating_object);
} else {
- floating_object->logical_offset =
- PositionFloat(floating_object.Get(), MutableConstraintSpace());
- container_builder_.MutablePositionedFloats().push_back(floating_object);
+ container_builder_.MutablePositionedFloats().push_back(
+ PositionFloat(floating_object.Get(), MutableConstraintSpace()));
FindNextLayoutOpportunity();
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698