Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1506)

Unified Diff: Source/core/svg/SVGStyleElement.cpp

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698