Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
| index d5c733026cb9635ebaf60dca524c3734bd0a58f0..c838cb38e2c7d16c6a3407c10e53a27ea14f892f 100644 |
| --- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
| +++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
| @@ -837,7 +837,7 @@ void ContainerNode::notifyNodeInsertedInternal(Node& root, NodeVector& postInser |
| for (Node& node : NodeTraversal::inclusiveDescendantsOf(root)) { |
| // As an optimization we don't notify leaf nodes when when inserting |
|
tkent
2015/10/21 03:56:17
nit: should update the comment.
Oliver Chang
2015/10/21 04:13:53
Done.
|
| // into detached subtrees. |
| - if (!inDocument() && !node.isContainerNode()) |
| + if (!inDocument() && !isInShadowTree() && !node.isContainerNode()) |
| continue; |
| if (Node::InsertionShouldCallDidNotifySubtreeInsertions == node.insertedInto(this)) |
| postInsertionNotificationTargets.append(&node); |