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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h

Issue 2281153002: [layoutng] async layout part 1: Change the API to support async (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.cc ('k') | 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_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h
index 20321dccbf30e21fd0962dee819ff1f2b000b819..fdff8977381d66ea5e8d1bcc8f436373494e289f 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h
@@ -27,7 +27,12 @@ class CORE_EXPORT NGLayoutAlgorithm {
// resulting layout information.
// This function can not be const because for interruptible layout, we have
// to be able to store state information.
- virtual NGFragment* layout(const NGConstraintSpace*) = 0;
+ // Returns true when done; when this function returns false, it has to be
+ // called again. The out parameter will only be set when this function
+ // returns true. The same constraint space has to be passed each time.
+ // TODO(layout-ng): Should we have a StartLayout function to avoid passing
+ // the same space for each Layout iteration?
+ virtual bool Layout(const NGConstraintSpace*, NGFragment**) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698