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

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: Legacy out-of-flow descendant propagation 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..942a06925803899a3fc8c2f3413dbcf2a48f3200 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,11 @@ void LayoutNGBlockFlow::layoutBlock(bool relayoutChildren) {
NGFragmentBase* fragment;
while (!m_box->Layout(constraint_space, &fragment))
;
+
+ // const HeapLinkedHashSet<WeakMember<NGBlockNode>>& oof_descendants =
+ // fragment->PhysicalFragment()->OutOfFlowDescendants();
ikilpatrick 2016/12/13 18:28:27 why is this commented out?
atotic 2016/12/13 19:19:41 because oops. fixed.
+ 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