Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 3677190d1c8f8ebce5e3064f6b484bb6947760f4..d4d34ef4b6a7d4f584f56bd7fe012ac7fa02fe28 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -193,7 +193,6 @@ |
#include "core/loader/DocumentLoader.h" |
#include "core/loader/FrameFetchContext.h" |
#include "core/loader/FrameLoader.h" |
-#include "core/loader/ImageLoader.h" |
#include "core/loader/NavigationScheduler.h" |
#include "core/loader/PrerendererClient.h" |
#include "core/loader/appcache/ApplicationCacheHost.h" |
@@ -3044,11 +3043,6 @@ void Document::ImplicitClose() { |
// onLoad event handler, as in Radar 3206524. |
DetachParser(); |
- if (GetFrame() && CanExecuteScripts(kNotAboutToExecuteScript)) { |
- ImageLoader::DispatchPendingLoadEvents(); |
- ImageLoader::DispatchPendingErrorEvents(); |
- } |
- |
// JS running below could remove the frame or destroy the LayoutView so we |
// call those two functions repeatedly and don't save them on the stack. |