| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 case IN_ORDER_EXECUTION: | 60 case IN_ORDER_EXECUTION: |
| 61 m_pendingInOrderScripts.append(scriptLoader); | 61 m_pendingInOrderScripts.append(scriptLoader); |
| 62 m_numberOfInOrderScriptsWithPendingNotification++; | 62 m_numberOfInOrderScriptsWithPendingNotification++; |
| 63 break; | 63 break; |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation) | 67 void ScriptRunner::postTask(const WebTraceLocation& webTraceLocation) |
| 68 { | 68 { |
| 69 m_taskRunner->postTask(webTraceLocation, bind(&ScriptRunner::executeTask, wr
apWeakPersistent(this))); | 69 m_taskRunner->postTask(webTraceLocation, WTF::bind(&ScriptRunner::executeTas
k, wrapWeakPersistent(this))); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void ScriptRunner::suspend() | 72 void ScriptRunner::suspend() |
| 73 { | 73 { |
| 74 #ifndef NDEBUG | 74 #ifndef NDEBUG |
| 75 m_hasEverBeenSuspended = true; | 75 m_hasEverBeenSuspended = true; |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 m_isSuspended = true; | 78 m_isSuspended = true; |
| 79 } | 79 } |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 DEFINE_TRACE(ScriptRunner) | 236 DEFINE_TRACE(ScriptRunner) |
| 237 { | 237 { |
| 238 visitor->trace(m_document); | 238 visitor->trace(m_document); |
| 239 visitor->trace(m_pendingInOrderScripts); | 239 visitor->trace(m_pendingInOrderScripts); |
| 240 visitor->trace(m_pendingAsyncScripts); | 240 visitor->trace(m_pendingAsyncScripts); |
| 241 visitor->trace(m_asyncScriptsToExecuteSoon); | 241 visitor->trace(m_asyncScriptsToExecuteSoon); |
| 242 visitor->trace(m_inOrderScriptsToExecuteSoon); | 242 visitor->trace(m_inOrderScriptsToExecuteSoon); |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace blink | 245 } // namespace blink |
| OLD | NEW |