Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1477)

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 1214513003: Remove references into sky/engine/core/fetch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/editing/Editor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index c0391d43b5188b6ee091b8863ea49a3a1e57744b..7e81f6b6181a4335217bffae94bcca16308d7ee2 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -75,7 +75,6 @@
#include "sky/engine/core/events/HashChangeEvent.h"
#include "sky/engine/core/events/PageTransitionEvent.h"
#include "sky/engine/core/events/ScopedEventQueue.h"
-#include "sky/engine/core/fetch/ResourceFetcher.h"
#include "sky/engine/core/frame/FrameConsole.h"
#include "sky/engine/core/frame/FrameHost.h"
#include "sky/engine/core/frame/FrameView.h"
@@ -85,7 +84,6 @@
#include "sky/engine/core/inspector/ConsoleMessage.h"
#include "sky/engine/core/inspector/InspectorCounters.h"
#include "sky/engine/core/loader/FrameLoaderClient.h"
-#include "sky/engine/core/loader/ImageLoader.h"
#include "sky/engine/core/page/ChromeClient.h"
#include "sky/engine/core/page/EventHandler.h"
#include "sky/engine/core/page/FocusController.h"
@@ -245,8 +243,6 @@ Document::Document(const DocumentInit& initializer)
if (!m_elementRegistry)
m_elementRegistry = CustomElementRegistry::Create();
- m_fetcher = ResourceFetcher::create(this);
-
// We depend on the url getting immediately set in subframes, but we
// also depend on the url NOT getting immediately set in opened windows.
// See fast/dom/early-frame-url.html
@@ -289,8 +285,6 @@ Document::~Document()
if (m_elemSheet)
m_elemSheet->clearOwnerNode();
- m_fetcher.clear();
-
// We must call clearRareData() here since a Document class inherits TreeScope
// as well as Node. See a comment on TreeScope.h for the reason.
if (hasRareData())
@@ -1100,11 +1094,6 @@ void Document::implicitClose()
// onLoad event handler, as in Radar 3206524.
detachParser();
- if (frame()) {
- ImageLoader::dispatchPendingLoadEvents();
- ImageLoader::dispatchPendingErrorEvents();
- }
-
// JS running below could remove the frame or destroy the RenderView so we call
// those two functions repeatedly and don't save them on the stack.
@@ -1132,10 +1121,6 @@ void Document::checkCompleted()
if (parsing())
return;
- // Still waiting for images/scripts?
- if (fetcher()->requestCount())
- return;
-
// Still waiting for elements that don't go through a FrameLoader?
if (isDelayingLoadEvent())
return;
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698