| Index: Source/core/editing/DeleteSelectionCommand.cpp
|
| diff --git a/Source/core/editing/DeleteSelectionCommand.cpp b/Source/core/editing/DeleteSelectionCommand.cpp
|
| index 38d9f4429d437420ee2e6bb6caad01ad30bbe4df..868e60ab2be2dd28f78665b3d234ddd0f667b503 100644
|
| --- a/Source/core/editing/DeleteSelectionCommand.cpp
|
| +++ b/Source/core/editing/DeleteSelectionCommand.cpp
|
| @@ -427,8 +427,10 @@ void DeleteSelectionCommand::makeStylingElementsDirectChildrenOfEditableRootToPr
|
| if ((node->hasTagName(styleTag) && !(toElement(node.get())->hasAttribute(scopedAttr))) || node->hasTagName(linkTag)) {
|
| nextNode = NodeTraversal::nextSkippingChildren(node.get());
|
| RefPtr<ContainerNode> rootEditableElement = node->rootEditableElement();
|
| - removeNode(node);
|
| - appendNode(node, rootEditableElement);
|
| + if (rootEditableElement.get()) {
|
| + removeNode(node);
|
| + appendNode(node, rootEditableElement);
|
| + }
|
| }
|
| node = nextNode;
|
| }
|
|
|