| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 for (size_t i = 0; i < size; ++i) { | 128 for (size_t i = 0; i < size; ++i) { |
| 129 ScriptResource* resource = scripts[i].resource(); | 129 ScriptResource* resource = scripts[i].resource(); |
| 130 RefPtrWillBeRawPtr<Element> element = scripts[i].releaseElementAndClear(
); | 130 RefPtrWillBeRawPtr<Element> element = scripts[i].releaseElementAndClear(
); |
| 131 toScriptLoaderIfPossible(element.get())->execute(resource); | 131 toScriptLoaderIfPossible(element.get())->execute(resource); |
| 132 m_document->decrementLoadEventDelayCount(); | 132 m_document->decrementLoadEventDelayCount(); |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 | 135 |
| 136 void ScriptRunner::trace(Visitor* visitor) | 136 void ScriptRunner::trace(Visitor* visitor) |
| 137 { | 137 { |
| 138 #if ENABLE(OILPAN) |
| 138 visitor->trace(m_document); | 139 visitor->trace(m_document); |
| 139 visitor->trace(m_scriptsToExecuteInOrder); | 140 visitor->trace(m_scriptsToExecuteInOrder); |
| 140 visitor->trace(m_scriptsToExecuteSoon); | 141 visitor->trace(m_scriptsToExecuteSoon); |
| 141 visitor->trace(m_pendingAsyncScripts); | 142 visitor->trace(m_pendingAsyncScripts); |
| 143 #endif |
| 142 } | 144 } |
| 143 | 145 |
| 144 } | 146 } |
| OLD | NEW |