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

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

Issue 2519263002: [layout-ng] Convert ng_block_layout_algorithm to yield to the coordinator (Closed)
Patch Set: sync to head Created 4 years 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 d23ea7b897189bdde16e63f60e1348fbf4347529..49513cd520b49db62955a9c02153160731035f3e 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
@@ -57,6 +57,13 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
DECLARE_VIRTUAL_TRACE();
+ // Runs layout on layout_box_ and creates a fragment for the resulting
+ // geometry.
+ NGPhysicalFragment* RunOldLayout(const NGConstraintSpace&);
+
+ void UpdateLayoutBox(NGPhysicalFragment* fragment,
+ const NGConstraintSpace* constraint_space);
+
private:
// This is necessary for interop between old and new trees -- after our parent
// positions us, it calls this function so we can store the position on the
@@ -70,10 +77,6 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
// data to the layout box.
void CopyFragmentDataToLayoutBox(const NGConstraintSpace&);
- // Runs layout on layout_box_ and creates a fragment for the resulting
- // geometry.
- NGPhysicalFragment* RunOldLayout(const NGConstraintSpace&);
-
// We can either wrap a layout_box_ or a style_/next_sibling_/first_child_
// combination.
LayoutBox* layout_box_;

Powered by Google App Engine
This is Rietveld 408576698