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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.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_layout_inline_items_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
index 1ac3a1d9964313568d2fe1b6612c5f62b61f6aea..3a9ee9b15b78f7b524a4b8876a7ac77c69263d80 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
@@ -99,7 +99,7 @@ void NGLayoutInlineItemsBuilder::Append(const String& string,
const ComputedStyle* style) {
if (string.isEmpty()) {
unsigned offset = text_.length();
- items_->append(NGLayoutInlineItem(offset, offset, style));
+ items_->push_back(NGLayoutInlineItem(offset, offset, style));
return;
}
@@ -149,7 +149,7 @@ void NGLayoutInlineItemsBuilder::Append(const String& string,
}
}
- items_->append(NGLayoutInlineItem(start_offset, text_.length(), style));
+ items_->push_back(NGLayoutInlineItem(start_offset, text_.length(), style));
}
void NGLayoutInlineItemsBuilder::Append(UChar character) {
@@ -166,7 +166,7 @@ void NGLayoutInlineItemsBuilder::AppendAsOpaqueToSpaceCollapsing(
text_.append(character);
unsigned end_offset = text_.length();
- items_->append(NGLayoutInlineItem(end_offset - 1, end_offset, nullptr));
+ items_->push_back(NGLayoutInlineItem(end_offset - 1, end_offset, nullptr));
}
void NGLayoutInlineItemsBuilder::ProcessPendingNewline(
@@ -252,7 +252,7 @@ void NGLayoutInlineItemsBuilder::EnterInline(LayoutObject* node) {
void NGLayoutInlineItemsBuilder::Enter(LayoutObject* node,
UChar character_to_exit) {
- exits_.append(OnExitNode{node, character_to_exit});
+ exits_.push_back(OnExitNode{node, character_to_exit});
has_bidi_controls_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698