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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase 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 fcb583502e3ffc1f29193c224d7efdc1753a2fef..029c2761fae0039f913a5bf687944d6a3d7eacf6 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
@@ -13,7 +13,7 @@ namespace blink {
NGLayoutInlineItemsBuilder::~NGLayoutInlineItemsBuilder() {
DCHECK_EQ(0u, exits_.size());
- DCHECK_EQ(text_.length(), items_->isEmpty() ? 0 : items_->last().EndOffset());
+ DCHECK_EQ(text_.length(), items_->isEmpty() ? 0 : items_->back().EndOffset());
}
void NGLayoutInlineItemsBuilder::Append(const String& string,
@@ -100,8 +100,8 @@ void NGLayoutInlineItemsBuilder::ExitInline(LayoutObject* node) {
}
void NGLayoutInlineItemsBuilder::Exit(LayoutObject* node) {
- while (!exits_.isEmpty() && exits_.last().node == node) {
- Append(exits_.last().character, nullptr);
+ while (!exits_.isEmpty() && exits_.back().node == node) {
+ Append(exits_.back().character, nullptr);
exits_.pop_back();
}
}

Powered by Google App Engine
This is Rietveld 408576698