| Index: sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| diff --git a/sky/engine/core/dom/shadow/ShadowRoot.cpp b/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| index 80d5b8229f8db809fc01c3ff20dc5fb3be80bc3e..239764bc7b178e1b9743bb32ce715d4e9619ec04 100644
|
| --- a/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| +++ b/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| @@ -56,7 +56,8 @@ ShadowRoot::ShadowRoot(Document& document)
|
|
|
| ShadowRoot::~ShadowRoot()
|
| {
|
| - document().styleEngine()->didRemoveShadowRoot(this);
|
| + if (StyleEngine* styleEngine = document().styleEngine())
|
| + styleEngine->didRemoveShadowRoot(this);
|
|
|
| // We cannot let ContainerNode destructor call willBeDeletedFromDocument()
|
| // for this ShadowRoot instance because TreeScope destructor
|
|
|