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(); |
} |