| 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 221127ce34ec84f9561ce1679cec9917ac4481f3..9255f99b79ede2e9535ae6879c5d1d136ab28bbf 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp
|
| @@ -63,7 +63,7 @@ void MoveSelectionCommand::doApply(EditingState* editingState)
|
| // 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.inShadowIncludingDocument())
|
| + if (!pos.isConnected())
|
| pos = endingSelection().start();
|
|
|
| cleanupAfterDeletion(editingState, createVisiblePosition(pos));
|
| @@ -71,7 +71,7 @@ void MoveSelectionCommand::doApply(EditingState* editingState)
|
| return;
|
|
|
| setEndingSelection(VisibleSelection(pos, endingSelection().affinity(), endingSelection().isDirectional()));
|
| - if (!pos.inShadowIncludingDocument()) {
|
| + if (!pos.isConnected()) {
|
| // Document was modified out from under us.
|
| return;
|
| }
|
|
|