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

Unified Diff: Source/core/dom/ScriptRunner.h

Issue 936493003: Revert of Teach ScriptRunner how to yield and post on loading task queue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « Source/core/dom/ScriptLoader.h ('k') | Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptRunner.h
diff --git a/Source/core/dom/ScriptRunner.h b/Source/core/dom/ScriptRunner.h
index 2dcd068236cd6631eee9b1c04638f4704a40b6d9..7f0cfbe5a237cc370cd4494b19aeb27ddb7dd7e3 100644
--- a/Source/core/dom/ScriptRunner.h
+++ b/Source/core/dom/ScriptRunner.h
@@ -27,12 +27,12 @@
#define ScriptRunner_h
#include "core/fetch/ResourcePtr.h"
+#include "platform/Timer.h"
#include "platform/heap/Handle.h"
-#include "platform/scheduler/CancellableTaskFactory.h"
-#include "wtf/Deque.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/Vector.h"
namespace blink {
@@ -63,22 +63,18 @@
private:
explicit ScriptRunner(Document*);
- void executeScripts();
+ void timerFired(Timer<ScriptRunner>*);
void addPendingAsyncScript(ScriptLoader*);
void movePendingAsyncScript(ScriptRunner*, ScriptLoader*);
- bool yieldForHighPriorityWork();
-
- void postTaskIfOneIsNotAlreadyInFlight();
-
RawPtrWillBeMember<Document> m_document;
- WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_scriptsToExecuteInOrder;
+ WillBeHeapVector<RawPtrWillBeMember<ScriptLoader> > m_scriptsToExecuteInOrder;
// http://www.whatwg.org/specs/web-apps/current-work/#set-of-scripts-that-will-execute-as-soon-as-possible
- WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_scriptsToExecuteSoon;
+ WillBeHeapVector<RawPtrWillBeMember<ScriptLoader> > m_scriptsToExecuteSoon;
WillBeHeapHashSet<RawPtrWillBeMember<ScriptLoader> > m_pendingAsyncScripts;
- CancellableTaskFactory m_executeScriptsTaskFactory;
+ Timer<ScriptRunner> m_timer;
};
}
« no previous file with comments | « Source/core/dom/ScriptLoader.h ('k') | Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698