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

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

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. Created 3 years, 10 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_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
index 1893195b39c12a41ffd61704701348af28355f05..04d2311e1beacf9d607584453f08260a4921c2ef 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
@@ -34,7 +34,8 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
~NGBlockNode() override;
- RefPtr<NGLayoutResult> Layout(NGConstraintSpace* constraint_space) override;
+ RefPtr<NGLayoutResult> Layout(NGConstraintSpace* constraint_space,
+ NGBreakToken* break_token = nullptr) override;
NGLayoutInputNode* NextSibling() override;
LayoutObject* GetLayoutObject() override;
@@ -53,11 +54,6 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
void SetNextSibling(NGLayoutInputNode*);
void SetFirstChild(NGLayoutInputNode*);
- NGBreakToken* CurrentBreakToken() const;
- bool IsLayoutFinished() const {
- return layout_result_ && !layout_result_->PhysicalFragment()->BreakToken();
- }
-
DECLARE_VIRTUAL_TRACE();
// Runs layout on layout_box_ and creates a fragment for the resulting

Powered by Google App Engine
This is Rietveld 408576698