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

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

Issue 2231153003: [layoutng] Make the layout algorithm actually compute and store positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stuff
Patch Set: Add children to fragment 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | 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_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
index 44fef5d670aa89dfcfcfbd7fedddbc720ca78fcf..f6a80fa3d9fcb58d90737c066d4a422ba564c96f 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
@@ -28,6 +28,10 @@ class CORE_EXPORT NGFragment final : public NGFragmentBase {
NGFragmentBase::traceAfterDispatch(visitor);
}
+ void swapChildren(HeapVector<Member<const NGFragmentBase>>& children) {
+ m_children.swap(children);
+ }
+
private:
HeapVector<Member<const NGFragmentBase>> m_children;
bool m_isText;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698