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

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 0d92d85ed5212ae9ed6c054288d3a0f04669b3ce..6b98410cf79d55741ed25a36089eddbf2f074a0b 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) {
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698