| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/dom/ScriptRunner.h" | 26 #include "core/dom/ScriptRunner.h" |
| 27 | 27 |
| 28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
| 29 #include "core/dom/Element.h" | 29 #include "core/dom/Element.h" |
| 30 #include "core/dom/ScriptLoader.h" | 30 #include "core/dom/ScriptLoader.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "platform/scheduler/CancellableTaskFactory.h" | |
| 33 #include "public/platform/Platform.h" | 32 #include "public/platform/Platform.h" |
| 34 #include "public/platform/WebScheduler.h" | 33 #include "public/platform/WebScheduler.h" |
| 35 #include "public/platform/WebThread.h" | 34 #include "public/platform/WebThread.h" |
| 36 | 35 |
| 37 namespace blink { | 36 namespace blink { |
| 38 | 37 |
| 39 ScriptRunner::ScriptRunner(Document* document) | 38 ScriptRunner::ScriptRunner(Document* document) |
| 40 : m_document(document), | 39 : m_document(document), |
| 41 m_taskRunner(Platform::current() | 40 m_taskRunner(Platform::current() |
| 42 ->currentThread() | 41 ->currentThread() |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 244 |
| 246 DEFINE_TRACE(ScriptRunner) { | 245 DEFINE_TRACE(ScriptRunner) { |
| 247 visitor->trace(m_document); | 246 visitor->trace(m_document); |
| 248 visitor->trace(m_pendingInOrderScripts); | 247 visitor->trace(m_pendingInOrderScripts); |
| 249 visitor->trace(m_pendingAsyncScripts); | 248 visitor->trace(m_pendingAsyncScripts); |
| 250 visitor->trace(m_asyncScriptsToExecuteSoon); | 249 visitor->trace(m_asyncScriptsToExecuteSoon); |
| 251 visitor->trace(m_inOrderScriptsToExecuteSoon); | 250 visitor->trace(m_inOrderScriptsToExecuteSoon); |
| 252 } | 251 } |
| 253 | 252 |
| 254 } // namespace blink | 253 } // namespace blink |
| OLD | NEW |