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

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

Issue 2284983002: [layoutng] Implement state machine for async layout (Closed)
Patch Set: NOTREACHED, also fix the windows compile error Created 4 years, 4 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/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 45a8cf6bb7c6536de324d1ad6d399dafeebdbf01..d272fad3714346390d9ade61df62ae9e770d0694 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
@@ -5,7 +5,6 @@
#include "core/layout/ng/layout_ng_block_flow.h"
#include "core/layout/ng/ng_derived_constraint_space.h"
#include "core/layout/ng/ng_block_layout_algorithm.h"
-#include "core/layout/ng/ng_box_iterator.h"
#include "core/layout/ng/ng_fragment.h"
#include "core/layout/LayoutAnalyzer.h"
@@ -23,9 +22,9 @@ void LayoutNGBlockFlow::layoutBlock(bool relayoutChildren) {
const auto* constraint_space =
NGDerivedConstraintSpace::CreateFromLayoutObject(*this);
- NGBox box(this);
+ NGBox* box = new NGBox(this);
NGFragment* fragment;
- while (!box.Layout(constraint_space, &fragment))
+ while (!box->Layout(constraint_space, &fragment))
;
clearNeedsLayout();
}

Powered by Google App Engine
This is Rietveld 408576698