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

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

Issue 2457163002: WTF/std normalization: replace WTF::Vector::emplaceAppend with ::emplace_back (Closed)
Patch Set: rebase + return reference to emplaced element Created 4 years, 1 month 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 34d135e9be481d5e0f73f9dfbe2caf4b2b04dd60..fcb583502e3ffc1f29193c224d7efdc1753a2fef 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
@@ -20,14 +20,14 @@ void NGLayoutInlineItemsBuilder::Append(const String& string,
const ComputedStyle* style) {
unsigned start_offset = text_.length();
text_.append(string);
- items_->emplaceAppend(start_offset, text_.length(), style);
+ items_->emplace_back(start_offset, text_.length(), style);
}
void NGLayoutInlineItemsBuilder::Append(UChar32 character,
const ComputedStyle* style) {
text_.append(character);
unsigned end_offset = text_.length();
- items_->emplaceAppend(end_offset - 1, end_offset, style);
+ items_->emplace_back(end_offset - 1, end_offset, style);
}
void NGLayoutInlineItemsBuilder::AppendBidiControl(const ComputedStyle* style,
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_inline_box_test.cc ('k') | third_party/WebKit/Source/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698