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

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

Issue 2950053002: Make Position::BeforeNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-21T17:56:36 Created 3 years, 6 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 6ec955a378747713f053473220bc47b4f43f01bd..4d20e829befcb69a02a9a138b2120e8277434443 100644
--- a/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp
@@ -134,7 +134,7 @@ void BreakBlockquoteCommand::DoApply(EditingState* editing_state) {
if (editing_state->IsAborted())
return;
SetEndingSelection(SelectionInDOMTree::Builder()
- .Collapse(Position::BeforeNode(break_element))
+ .Collapse(Position::BeforeNode(*break_element))
.SetIsDirectional(EndingSelection().IsDirectional())
.Build());
RebalanceWhitespace();
@@ -152,7 +152,7 @@ void BreakBlockquoteCommand::DoApply(EditingState* editing_state) {
// need to break the quote.
if (is_last_vis_pos_in_node) {
SetEndingSelection(SelectionInDOMTree::Builder()
- .Collapse(Position::BeforeNode(break_element))
+ .Collapse(Position::BeforeNode(*break_element))
.SetIsDirectional(EndingSelection().IsDirectional())
.Build());
RebalanceWhitespace();
@@ -282,7 +282,7 @@ void BreakBlockquoteCommand::DoApply(EditingState* editing_state) {
// Put the selection right before the break.
SetEndingSelection(SelectionInDOMTree::Builder()
- .Collapse(Position::BeforeNode(break_element))
+ .Collapse(Position::BeforeNode(*break_element))
.SetIsDirectional(EndingSelection().IsDirectional())
.Build());
RebalanceWhitespace();

Powered by Google App Engine
This is Rietveld 408576698