| Index: third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp b/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
|
| index edb3afbfe97901e1636793279d354e4ae24ae305..eb583d7504e5d41f46dcb241af0bf5a30781b495 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
|
| @@ -42,8 +42,8 @@ using namespace HTMLNames;
|
|
|
| static SourceEventSender& sourceErrorEventSender()
|
| {
|
| - DEFINE_STATIC_LOCAL(SourceEventSender, sharedErrorEventSender, (EventTypeNames::error));
|
| - return sharedErrorEventSender;
|
| + DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<SourceEventSender>, sharedErrorEventSender, (SourceEventSender::create(EventTypeNames::error)));
|
| + return *sharedErrorEventSender;
|
| }
|
|
|
| class HTMLSourceElement::Listener final : public MediaQueryListListener {
|
| @@ -76,8 +76,8 @@ DEFINE_NODE_FACTORY(HTMLSourceElement)
|
|
|
| HTMLSourceElement::~HTMLSourceElement()
|
| {
|
| - sourceErrorEventSender().cancelEvent(this);
|
| #if !ENABLE(OILPAN)
|
| + sourceErrorEventSender().cancelEvent(this);
|
| m_listener->clearElement();
|
| #endif
|
| }
|
|
|