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

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

Issue 2569263002: Legacy out-of-flow descendant propagation (Closed)
Patch Set: CR fixes, wording Created 4 years 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 | third_party/WebKit/Source/core/layout/ng/ng_block_node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
index 6752c496e63bc1512181bca8990545e7ed0e13de..6410d6ab882310807be524338ac5e5d86b8123ca 100644
--- a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
+++ b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
@@ -4,6 +4,7 @@
#include "core/layout/ng/layout_ng_block_flow.h"
#include "core/layout/ng/ng_constraint_space.h"
+#include "core/layout/ng/ng_fragment_base.h"
#include "core/layout/LayoutAnalyzer.h"
namespace blink {
@@ -28,6 +29,9 @@ void LayoutNGBlockFlow::layoutBlock(bool relayoutChildren) {
NGFragmentBase* fragment;
while (!m_box->Layout(constraint_space, &fragment))
;
+
+ for (auto& descendant : fragment->PhysicalFragment()->OutOfFlowDescendants())
+ descendant->UseOldOutOfFlowPositioning();
clearNeedsLayout();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698