Index: third_party/WebKit/Source/core/loader/ImageLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.cpp b/third_party/WebKit/Source/core/loader/ImageLoader.cpp |
index 542f881433fe5d6505069794fc9a8bf95e280d86..5c9ed3d01576cc0345c8b58dbb429816054c644b 100644 |
--- a/third_party/WebKit/Source/core/loader/ImageLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.cpp |
@@ -54,14 +54,14 @@ |
static ImageEventSender& loadEventSender() |
{ |
- DEFINE_STATIC_LOCAL(ImageEventSender, sender, (ImageEventSender::create(EventTypeNames::load))); |
- return sender; |
+ DEFINE_STATIC_LOCAL(Persistent<ImageEventSender>, sender, (ImageEventSender::create(EventTypeNames::load))); |
+ return *sender; |
} |
static ImageEventSender& errorEventSender() |
{ |
- DEFINE_STATIC_LOCAL(ImageEventSender, sender, (ImageEventSender::create(EventTypeNames::error))); |
- return sender; |
+ DEFINE_STATIC_LOCAL(Persistent<ImageEventSender>, sender, (ImageEventSender::create(EventTypeNames::error))); |
+ return *sender; |
} |
static inline bool pageIsBeingDismissed(Document* document) |