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

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

Issue 2397963002: Reflow comments in //third_party/WebKit/Source/core/editing/commands (Closed)
Patch Set: . Created 4 years, 2 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/MoveSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
index 900da646a57db236b0159047911cad55956afea5..df42f8b13dec44489242abdc509175d1ac6e173e 100644
--- a/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
@@ -49,7 +49,8 @@ void MoveSelectionCommand::doApply(EditingState* editingState) {
if (pos.isNull())
return;
- // Update the position otherwise it may become invalid after the selection is deleted.
+ // Update the position otherwise it may become invalid after the selection is
+ // deleted.
Position selectionEnd = endingSelection().end();
if (pos.isOffsetInAnchor() && selectionEnd.isOffsetInAnchor() &&
selectionEnd.computeContainerNode() == pos.computeContainerNode() &&
@@ -70,10 +71,10 @@ void MoveSelectionCommand::doApply(EditingState* editingState) {
if (editingState->isAborted())
return;
- // If the node for the destination has been removed as a result of the deletion,
- // set the destination to the ending point after the deletion.
- // Fixes: <rdar://problem/3910425> REGRESSION (Mail): Crash in ReplaceSelectionCommand;
- // selection is empty, leading to null deref
+ // If the node for the destination has been removed as a result of the
+ // deletion, set the destination to the ending point after the deletion.
+ // Fixes: <rdar://problem/3910425> REGRESSION (Mail): Crash in
+ // ReplaceSelectionCommand; selection is empty, leading to null deref
if (!pos.isConnected())
pos = endingSelection().start();

Powered by Google App Engine
This is Rietveld 408576698