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

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

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (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/BreakBlockquoteCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
index 5a239feeab99cde4e899e5064f4147929a3725f1..2ea3a63b7e6346a21291d911b26ffc82d8a3d030 100644
--- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
@@ -241,7 +241,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
// into the clone corresponding to the ancestor's parent.
Element* ancestor = nullptr;
Element* clonedParent = nullptr;
- for (ancestor = ancestors.first(),
+ for (ancestor = ancestors.front(),
clonedParent = clonedAncestor->parentElement();
ancestor && ancestor != topBlockquote;
ancestor = ancestor->parentElement(),
@@ -253,7 +253,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState) {
}
// If the startNode's original parent is now empty, remove it
- Element* originalParent = ancestors.first().get();
+ Element* originalParent = ancestors.front().get();
if (!originalParent->hasChildren()) {
removeNode(originalParent, editingState);
if (editingState->isAborted())

Powered by Google App Engine
This is Rietveld 408576698