Index: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
index abc19ceac4fba1604da029169e91c196f9114bb3..148eba27bca841209b44c02459e4d5a4ceb6849d 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
@@ -122,8 +122,8 @@ static void parseSizes(const CharacterType* value, unsigned length, Vector<IntSi |
static LinkEventSender& linkLoadEventSender() |
{ |
- DEFINE_STATIC_LOCAL(LinkEventSender, sharedLoadEventSender, (EventTypeNames::load)); |
- return sharedLoadEventSender; |
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<LinkEventSender>, sharedLoadEventSender, (LinkEventSender::create(EventTypeNames::load))); |
+ return *sharedLoadEventSender; |
} |
void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntSize>& iconSizes) |
@@ -159,8 +159,8 @@ HTMLLinkElement::~HTMLLinkElement() |
m_link.clear(); |
if (inDocument()) |
document().styleEngine().removeStyleSheetCandidateNode(this); |
-#endif |
linkLoadEventSender().cancelEvent(this); |
+#endif |
} |
void HTMLLinkElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value) |