| Index: Source/core/svg/SVGStyleElement.cpp
|
| diff --git a/Source/core/svg/SVGStyleElement.cpp b/Source/core/svg/SVGStyleElement.cpp
|
| index f0815b4daebb845b34eabee9ca4cf663e7739bf2..2c09b7b7ab40997b50935a4c38954e1da10e4e26 100644
|
| --- a/Source/core/svg/SVGStyleElement.cpp
|
| +++ b/Source/core/svg/SVGStyleElement.cpp
|
| @@ -38,7 +38,13 @@ inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser
|
|
|
| SVGStyleElement::~SVGStyleElement()
|
| {
|
| +#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
|
| }
|
|
|
| PassRefPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool createdByParser)
|
|
|