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

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

Issue 2653203003: Migrate WTF::Vector::append() to ::push_back() [part 17 of N] (Closed)
Patch Set: Created 3 years, 11 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_line_builder.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_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 45eaca42d9b8c48ef9966de7714a07e8d8a26369..70250224c644321e35a209a95d59e79c9fe21a77 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
@@ -75,8 +75,8 @@ NGFragmentBuilder& NGFragmentBuilder::AddChild(
NGFragmentBuilder& NGFragmentBuilder::AddFloatingObject(
NGFloatingObject* floating_object,
const NGLogicalOffset& floating_object_offset) {
- positioned_floats_.append(floating_object);
- floating_object_offsets_.append(floating_object_offset);
+ positioned_floats_.push_back(floating_object);
+ floating_object_offsets_.push_back(floating_object_offset);
return *this;
}
@@ -94,7 +94,7 @@ NGFragmentBuilder& NGFragmentBuilder::AddOutOfFlowChildCandidate(
NGFragmentBuilder& NGFragmentBuilder::AddUnpositionedFloat(
NGFloatingObject* floating_object) {
- unpositioned_floats_.append(floating_object);
+ unpositioned_floats_.push_back(floating_object);
return *this;
}
@@ -177,7 +177,7 @@ NGPhysicalBoxFragment* NGFragmentBuilder::ToBoxFragment() {
NGPhysicalFragment* floating_fragment = floating_object->fragment;
floating_fragment->SetOffset(floating_object_offsets_[i].ConvertToPhysical(
writing_mode_, direction_, physical_size, floating_fragment->Size()));
- positioned_floats.append(floating_object);
+ positioned_floats.push_back(floating_object);
}
return new NGPhysicalBoxFragment(
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698