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

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

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 of N] (Closed)
Patch Set: rebase 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
Index: third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
index 8769b77d581073678ad6ebd47b60dec6645f3b06..e2e982875c8897fb5e0ee7375c3433080751cc59 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
@@ -30,13 +30,13 @@ class NGInlineNodeForTest : public NGInlineNode {
void Append(const String& text, const ComputedStyle* style = nullptr) {
unsigned start = text_content_.length();
text_content_.append(text);
- items_.append(NGLayoutInlineItem(start, start + text.length(), style));
+ items_.push_back(NGLayoutInlineItem(start, start + text.length(), style));
}
void Append(UChar character) {
text_content_.append(character);
unsigned end = text_content_.length();
- items_.append(NGLayoutInlineItem(end - 1, end, nullptr));
+ items_.push_back(NGLayoutInlineItem(end - 1, end, nullptr));
is_bidi_enabled_ = true;
}
@@ -72,7 +72,7 @@ class NGInlineNodeTest : public ::testing::Test {
line_builder.CreateFragments(&fragment_builder);
NGPhysicalBoxFragment* fragment = fragment_builder.ToBoxFragment();
for (const NGPhysicalFragment* child : fragment->Children()) {
- fragments_out->append(toNGPhysicalTextFragment(child));
+ fragments_out->push_back(toNGPhysicalTextFragment(child));
}
}

Powered by Google App Engine
This is Rietveld 408576698