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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc

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_fragment_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
index f7ef2e236c9daf7dfb89efc16267fb26051ef9a9..e35588f80a7a808daed298f62772a134769b831c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
@@ -72,11 +72,11 @@ NGPhysicalFragment* NGFragmentBuilder::ToFragment() {
DCHECK_EQ(offsets_.size(), children_.size());
NGPhysicalSize physical_size = size_.ConvertToPhysical(writing_mode_);
- HeapVector<Member<const NGPhysicalFragmentBase>> children;
+ Vector<const NGPhysicalFragmentBase*> children;
children.reserveCapacity(children_.size());
for (size_t i = 0; i < children_.size(); ++i) {
- NGPhysicalFragmentBase* child = children_[i].get();
+ NGPhysicalFragmentBase* child = children_[i];
child->SetOffset(offsets_[i].ConvertToPhysical(
writing_mode_, direction_, physical_size, child->Size()));
children.append(child);

Powered by Google App Engine
This is Rietveld 408576698