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

Unified Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 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: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
index 73c1b65eae7e909e3c67d43e77b7aad96d22c5d4..f7e3fa65f0cee23e8055b00ebeb2cd64bc68f3ae 100644
--- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
+++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
@@ -190,6 +190,12 @@ void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) {
// The callback might have deleted the frame, do not use |this|!
}
+void LocalFrameClientImpl::runScriptsAtDocumentIdle() {
+ if (m_webFrame->client())
+ m_webFrame->client()->runScriptsAtDocumentIdle(m_webFrame);
+ // The callback might have deleted the frame, do not use |this|!
+}
+
void LocalFrameClientImpl::didCreateScriptContext(
v8::Local<v8::Context> context,
int worldId) {

Powered by Google App Engine
This is Rietveld 408576698