Index: Source/core/editing/DeleteSelectionCommand.cpp |
diff --git a/Source/core/editing/DeleteSelectionCommand.cpp b/Source/core/editing/DeleteSelectionCommand.cpp |
index c7061d3b6696685f2c9a26f35bcc75fc21822657..485f2a573563ca0c7faf4a8b3d59da9ab2c6a12d 100644 |
--- a/Source/core/editing/DeleteSelectionCommand.cpp |
+++ b/Source/core/editing/DeleteSelectionCommand.cpp |
@@ -430,8 +430,7 @@ void DeleteSelectionCommand::makeStylingElementsDirectChildrenOfEditableRootToPr |
RefPtrWillBeRawPtr<Node> node = range->firstNode(); |
while (node && node != range->pastLastNode()) { |
RefPtrWillBeRawPtr<Node> nextNode = NodeTraversal::next(*node); |
- if ((isHTMLStyleElement(*node) && !toHTMLStyleElement(node)->hasAttribute(scopedAttr)) |
- || isHTMLLinkElement(*node)) { |
+ if (isHTMLStyleElement(*node) || isHTMLLinkElement(*node)) { |
nextNode = NodeTraversal::nextSkippingChildren(*node); |
RefPtrWillBeRawPtr<Element> rootEditableElement = node->rootEditableElement(); |
if (rootEditableElement.get()) { |