| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 m_pendingInOrderScripts.append(scriptLoader); | 60 m_pendingInOrderScripts.append(scriptLoader); |
| 61 m_numberOfInOrderScriptsWithPendingNotification++; | 61 m_numberOfInOrderScriptsWithPendingNotification++; |
| 62 break; | 62 break; |
| 63 case None: | 63 case None: |
| 64 NOTREACHED(); | 64 NOTREACHED(); |
| 65 break; | 65 break; |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 | 68 |
| 69 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation) { | 69 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation) { |
| 70 m_taskRunner->postTask(webTraceLocation, WTF::bind(&ScriptRunner::executeTask, | 70 m_taskRunner->postTask( |
| 71 wrapWeakPersistent(this))); | 71 webTraceLocation, |
| 72 WTF::bind(&ScriptRunner::executeTask, wrapWeakPersistent(this))); |
| 72 } | 73 } |
| 73 | 74 |
| 74 void ScriptRunner::suspend() { | 75 void ScriptRunner::suspend() { |
| 75 #ifndef NDEBUG | 76 #ifndef NDEBUG |
| 76 m_hasEverBeenSuspended = true; | 77 m_hasEverBeenSuspended = true; |
| 77 #endif | 78 #endif |
| 78 | 79 |
| 79 m_isSuspended = true; | 80 m_isSuspended = true; |
| 80 } | 81 } |
| 81 | 82 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 243 |
| 243 DEFINE_TRACE(ScriptRunner) { | 244 DEFINE_TRACE(ScriptRunner) { |
| 244 visitor->trace(m_document); | 245 visitor->trace(m_document); |
| 245 visitor->trace(m_pendingInOrderScripts); | 246 visitor->trace(m_pendingInOrderScripts); |
| 246 visitor->trace(m_pendingAsyncScripts); | 247 visitor->trace(m_pendingAsyncScripts); |
| 247 visitor->trace(m_asyncScriptsToExecuteSoon); | 248 visitor->trace(m_asyncScriptsToExecuteSoon); |
| 248 visitor->trace(m_inOrderScriptsToExecuteSoon); | 249 visitor->trace(m_inOrderScriptsToExecuteSoon); |
| 249 } | 250 } |
| 250 | 251 |
| 251 } // namespace blink | 252 } // namespace blink |
| OLD | NEW |