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

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

Issue 2400023002: [layoutng] Refactor NGBox::Layout (Closed)
Patch Set: fix compile error Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_box.cc » ('j') | 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_box.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.h b/third_party/WebKit/Source/core/layout/ng/ng_box.h
index c7fe209635792de084ca0d959eeaf56e4c09370a..a402ad24c2b1cde35a50da3d5d4b05ffe32b9f1e 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box.h
@@ -56,6 +56,14 @@ class CORE_EXPORT NGBox final : public GarbageCollectedFinalized<NGBox> {
bool CanUseNewLayout();
+ // After we run the layout algorithm, this function copies back the geometry
+ // 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_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698