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

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

Issue 2244463003: [layoutng] Bidirectional interoperability between layoutng and legacy layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Positioning 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_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 39d5e83ff6370c59dd547cbced1ccc6704f201fd..d2a5da95193bd52ce6211afe6440c7b00823b50b 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box.h
@@ -36,7 +36,14 @@ class CORE_EXPORT NGBox final {
NGBox firstChild() const;
+ // 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
+ // underlying LayoutBox.
+ void positionUpdated(const NGFragment&);
+
private:
+ bool canUseNewLayout();
+
LayoutBox* m_layoutBox;
};

Powered by Google App Engine
This is Rietveld 408576698