| Index: Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| diff --git a/Source/core/editing/commands/DeleteSelectionCommand.cpp b/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| index 9565fca09ed2c03543f2bef49ccde863068bec32..8ef2336f6de00400be7e0936f215f5c67d468f7c 100644
|
| --- a/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| +++ b/Source/core/editing/commands/DeleteSelectionCommand.cpp
|
| @@ -426,7 +426,7 @@ void DeleteSelectionCommand::deleteTextFromNode(PassRefPtrWillBeRawPtr<Text> nod
|
|
|
| void DeleteSelectionCommand::makeStylingElementsDirectChildrenOfEditableRootToPreventStyleLoss()
|
| {
|
| - RefPtrWillBeRawPtr<Range> range = m_selectionToDelete.toNormalizedRange();
|
| + RefPtrWillBeRawPtr<Range> range = createRange(m_selectionToDelete.toNormalizedEphemeralRange());
|
| RefPtrWillBeRawPtr<Node> node = range->firstNode();
|
| while (node && node != range->pastLastNode()) {
|
| RefPtrWillBeRawPtr<Node> nextNode = NodeTraversal::next(*node);
|
|
|