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

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

Issue 1997563002: Get rid of a redundant function alias positionBeforeNode() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-19T22:35:34 rebase Created 4 years, 7 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/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 cdd4fbd5d2f8c907a9a35ceac6e6170d25c3cd6f..3c930c60b3453481849c3f2aaa875734b7a2dcda 100644
--- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
@@ -113,7 +113,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
insertNodeBefore(breakElement, topBlockquote, editingState);
if (editingState->isAborted())
return;
- setEndingSelection(VisibleSelection(positionBeforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
+ setEndingSelection(VisibleSelection(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
rebalanceWhitespace();
return;
}
@@ -125,7 +125,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
// If we're inserting the break at the end of the quoted content, we don't need to break the quote.
if (isLastVisPosInNode) {
- setEndingSelection(VisibleSelection(positionBeforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
+ setEndingSelection(VisibleSelection(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
rebalanceWhitespace();
return;
}
@@ -236,7 +236,7 @@ void BreakBlockquoteCommand::doApply(EditingState* editingState)
return;
// Put the selection right before the break.
- setEndingSelection(VisibleSelection(positionBeforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
+ setEndingSelection(VisibleSelection(Position::beforeNode(breakElement), TextAffinity::Downstream, endingSelection().isDirectional()));
rebalanceWhitespace();
}

Powered by Google App Engine
This is Rietveld 408576698