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

Unified Diff: Source/core/dom/Document.cpp

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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;

Powered by Google App Engine
This is Rietveld 408576698