Index: third_party/WebKit/Source/core/svg/SVGStyleElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp |
index d53822eb19dd0ee951807741e406addce9090403..b27ec3f09cce37857bffcd78c4268f15dbd6ea14 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp |
@@ -31,8 +31,8 @@ namespace blink { |
static SVGStyleEventSender& styleErrorEventSender() |
{ |
- DEFINE_STATIC_LOCAL(SVGStyleEventSender, sharedErrorEventSender, (EventTypeNames::error)); |
- return sharedErrorEventSender; |
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<SVGStyleEventSender>, sharedErrorEventSender, (SVGStyleEventSender::create(EventTypeNames::error))); |
+ return *sharedErrorEventSender; |
} |
inline SVGStyleElement::SVGStyleElement(Document& document, bool createdByParser) |
@@ -45,9 +45,9 @@ SVGStyleElement::~SVGStyleElement() |
{ |
#if !ENABLE(OILPAN) |
StyleElement::clearDocumentData(document(), this); |
-#endif |
styleErrorEventSender().cancelEvent(this); |
+#endif |
} |
PassRefPtrWillBeRawPtr<SVGStyleElement> SVGStyleElement::create(Document& document, bool createdByParser) |