Index: Source/WebCore/html/HTMLStyleElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLStyleElement.cpp (revision 93496) |
+++ Source/WebCore/html/HTMLStyleElement.cpp (working copy) |
@@ -44,8 +44,7 @@ |
HTMLStyleElement::~HTMLStyleElement() |
{ |
- if (m_sheet) |
- m_sheet->clearOwnerNode(); |
+ StyleElement::clearDocumentData(document(), this); |
} |
PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagName, Document* document, bool createdByParser) |