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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_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
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
index c2d1e3f90f28a3ce5ddcfe9dd07b83f82d6548ff..46be7a0472bb2bdd86d2cc53dd15a7aa7618bbfa 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
@@ -31,11 +31,14 @@ class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm {
// resulting layout information.
// This function can not be const because for interruptible layout, we have
// to be able to store state information.
- NGFragment* layout(const NGConstraintSpace*) override;
+ // 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.
+ bool Layout(const NGConstraintSpace*, NGFragment**) override;
private:
- RefPtr<const ComputedStyle> m_style;
- NGBoxIterator m_boxIterator;
+ RefPtr<const ComputedStyle> style_;
+ NGBoxIterator box_iterator_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698