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

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

Issue 2347283002: [layoutng] Add out-of-flow objects to the positioned objects map (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_box.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.cc b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
index 3b628478e2967cf451e9567814fb6b3dd5be630d..36a64869c29067d16f9a511cb2116c0559ada873 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
@@ -26,6 +26,8 @@ NGBox::NGBox(ComputedStyle* style) : layout_box_(nullptr), style_(style) {
bool NGBox::Layout(const NGConstraintSpace* constraint_space,
NGFragment** out) {
+ if (layout_box_ && layout_box_->isOutOfFlowPositioned())
+ layout_box_->containingBlock()->insertPositionedObject(layout_box_);
// We can either use the new layout code to do the layout and then copy the
// resulting size to the LayoutObject, or use the old layout code and
// synthesize a fragment.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698