| Index: third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| index d9d2bd2ca3645ae6735577a7f8662c36f38f31f4..510ebf148c61bfe1822878fee1f804fbcb9e94c5 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
|
| @@ -186,10 +186,9 @@ void ApplyBlockElementCommand::formatSelection(
|
| if (endAfterSelection.isNotNull() && !endAfterSelection.isConnected())
|
| break;
|
| // Sanity check: Make sure our moveParagraph calls didn't remove
|
| - // endOfNextParagraph.position().anchorNode() If somehow, e.g. mutation
|
| + // endOfNextParagraph.anchorNode() If somehow, e.g. mutation
|
| // event handler, we did, return to prevent crashes.
|
| - if (endOfNextParagraph.isNotNull() &&
|
| - !endOfNextParagraph.position().isConnected())
|
| + if (endOfNextParagraph.isNotNull() && !endOfNextParagraph.isConnected())
|
| return;
|
|
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|