Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index f8e5af2088cdee03cb49d3c4116f384da9679355..50073a9be90cdd4aa5f18ea3b6cc9f77b075368a 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -3840,6 +3840,11 @@ void Document::nodeChildrenWillBeRemoved(ContainerNode& container) |
frame->page()->dragCaretController().nodeWillBeRemoved(n); |
} |
} |
+ |
+ if (containsV1ShadowTree()) { |
+ for (Node& n : NodeTraversal::childrenOf(container)) |
+ n.checkSlotChangeBeforeRemoved(); |
+ } |
} |
void Document::nodeWillBeRemoved(Node& n) |
@@ -3855,6 +3860,9 @@ void Document::nodeWillBeRemoved(Node& n) |
frame->selection().nodeWillBeRemoved(n); |
frame->page()->dragCaretController().nodeWillBeRemoved(n); |
} |
+ |
+ if (containsV1ShadowTree()) |
+ n.checkSlotChangeBeforeRemoved(); |
} |
void Document::dataWillChange(const CharacterData& characterData) |