summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGStyleElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGStyleElement.cpp')
-rw-r--r--WebCore/svg/SVGStyleElement.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/WebCore/svg/SVGStyleElement.cpp b/WebCore/svg/SVGStyleElement.cpp
index 4a80319..042af1c 100644
--- a/WebCore/svg/SVGStyleElement.cpp
+++ b/WebCore/svg/SVGStyleElement.cpp
@@ -40,6 +40,12 @@ inline SVGStyleElement::SVGStyleElement(const QualifiedName& tagName, Document*
{
}
+SVGStyleElement::~SVGStyleElement()
+{
+ if (m_sheet)
+ m_sheet->clearOwnerNode();
+}
+
PassRefPtr<SVGStyleElement> SVGStyleElement::create(const QualifiedName& tagName, Document* document, bool createdByParser)
{
return adoptRef(new SVGStyleElement(tagName, document, createdByParser));
@@ -114,11 +120,6 @@ void SVGStyleElement::childrenChanged(bool changedByParser, Node* beforeChange,
SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
}
-StyleSheet* SVGStyleElement::sheet()
-{
- return StyleElement::sheet(this);
-}
-
}
#endif // ENABLE(SVG)