| Index: Source/core/html/HTMLStyleElement.cpp
|
| diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
|
| index 76f96d2f4609ea04fd568022e84e0864520628f0..728b7a80727ca06c038d4bf84fd29528533d4096 100644
|
| --- a/Source/core/html/HTMLStyleElement.cpp
|
| +++ b/Source/core/html/HTMLStyleElement.cpp
|
| @@ -58,7 +58,13 @@ HTMLStyleElement::~HTMLStyleElement()
|
| {
|
| // During tear-down, willRemove isn't called, so m_scopedStyleRegistrationState may still be RegisteredAsScoped or RegisteredInShadowRoot here.
|
| // Therefore we can't ASSERT(m_scopedStyleRegistrationState == NotRegistered).
|
| +#if ENABLE(OILPAN)
|
| + // Remove this once StyleSheet has a strong pointer to its owner.
|
| + if (m_sheet)
|
| + m_sheet->clearOwnerNode();
|
| +#else
|
| StyleElement::clearDocumentData(document(), this);
|
| +#endif
|
|
|
| styleLoadEventSender().cancelEvent(this);
|
| }
|
|
|