| 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 196ca5cf71e0922c4c43e48707f68464262b6511..6b23f4f015beeb1def67394e74e9d18c28ccd985 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4218,6 +4218,9 @@ void Document::nodeWillBeRemoved(Node& n) {
|
|
|
| if (containsV1ShadowTree())
|
| n.checkSlotChangeBeforeRemoved();
|
| +
|
| + if (n.inActiveDocument() && n.isElementNode())
|
| + styleEngine().elementWillBeRemoved(toElement(n));
|
| }
|
|
|
| void Document::dataWillChange(const CharacterData& characterData) {
|
|
|