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

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

Issue 2649583002: [LayoutNG] Remove the ng_layout_coordinator and temporary LayoutSync method. (Closed)
Patch Set: rebase v2 Created 3 years, 11 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_layout_input_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
index ebe8f8cdfd8dcd20010462911c8f4e8c5f2f4f95..91022a0f4363799b7abe63971240c319237d2350 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
@@ -11,7 +11,7 @@
namespace blink {
class NGConstraintSpace;
-class NGFragment;
+class NGPhysicalFragment;
class NGLayoutAlgorithm;
// Represents the input to a layout algorithm for a given node. The layout
@@ -24,10 +24,8 @@ class CORE_EXPORT NGLayoutInputNode
virtual ~NGLayoutInputNode(){};
- // 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.
- virtual bool Layout(NGConstraintSpace*, NGFragment**) = 0;
+ // Performs layout on this input node, will return a new fragment.
+ virtual NGPhysicalFragment* Layout(NGConstraintSpace*) = 0;
// Returns the next sibling.
virtual NGLayoutInputNode* NextSibling() = 0;

Powered by Google App Engine
This is Rietveld 408576698