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_physical_fragment.h

Issue 2365083002: Make NGFragment to own NGPhysicalFragment (Closed)
Patch Set: Created 4 years, 3 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_physical_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
index b225795d24ae998e14aba5f93b84c2a6bce0519a..8ce9c8c47f52f10e58d86c4a7e3afd03ebba3caf 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
@@ -18,23 +18,18 @@ class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase {
// This modifies the passed-in children vector.
NGPhysicalFragment(NGPhysicalSize size,
NGPhysicalSize overflow,
- HeapVector<Member<const NGPhysicalFragmentBase>>& children,
+ Vector<const NGPhysicalFragmentBase*>& children,
NGMarginStrut margin_strut)
: NGPhysicalFragmentBase(size, overflow, FragmentBox, margin_strut) {
children_.swap(children);
}
- const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const {
+ const Vector<const NGPhysicalFragmentBase*>& Children() const {
return children_;
cbiesinger 2016/09/26 17:17:55 I really think you should document in the builder
}
- DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
- visitor->trace(children_);
- NGPhysicalFragmentBase::traceAfterDispatch(visitor);
- }
-
private:
- HeapVector<Member<const NGPhysicalFragmentBase>> children_;
+ Vector<const NGPhysicalFragmentBase*> children_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698