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

Unified Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp

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/editing/commands/TypingCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
index b97f20d46406a4151c8943e0a646d69701948d6e..68aee201cbbe8b3e2226b5d4b3e667d7bc59ff60 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -145,7 +145,7 @@ void TypingCommand::forwardDeleteKeyPressed(Document& document,
String TypingCommand::textDataForInputEvent() const {
if (m_commands.isEmpty())
return m_textToInsert;
- return m_commands.last()->textDataForInputEvent();
+ return m_commands.back()->textDataForInputEvent();
}
void TypingCommand::updateSelectionIfDifferentFromCurrentSelection(

Powered by Google App Engine
This is Rietveld 408576698