Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index e888b4ffe4415a95415655b5435bf9e2c16b16d9..9521db42e4691892e062b4a45c5f95c64606c9df 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2878,6 +2878,20 @@ void Document::didLoadAllImports() |
didLoadAllScriptBlockingResources(); |
} |
+void Document::didAddPendingResource() |
+{ |
+ if (m_fetcher) |
+ m_fetcher->incrementRequestCount(); |
+} |
+ |
+void Document::didRemovePendingResource() |
+{ |
+ if (m_fetcher) |
+ m_fetcher->decrementRequestCount(); |
+ if (LocalFrame* frame = this->frame()) |
+ frame->loader().loadDone(); |
+} |
+ |
void Document::didRemoveAllPendingStylesheet() |
{ |
m_needsNotifyRemoveAllPendingStylesheet = false; |