| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 if (!scriptLoader->willBeParserExecuted()) | 354 if (!scriptLoader->willBeParserExecuted()) |
| 355 return; | 355 return; |
| 356 | 356 |
| 357 if (scriptLoader->willExecuteWhenDocumentFinishedParsing()) { | 357 if (scriptLoader->willExecuteWhenDocumentFinishedParsing()) { |
| 358 requestDeferredScript(script); | 358 requestDeferredScript(script); |
| 359 } else if (scriptLoader->readyToBeParserExecuted()) { | 359 } else if (scriptLoader->readyToBeParserExecuted()) { |
| 360 if (m_scriptNestingLevel == 1) { | 360 if (m_scriptNestingLevel == 1) { |
| 361 m_parserBlockingScript.setElement(script); | 361 m_parserBlockingScript.setElement(script); |
| 362 m_parserBlockingScript.setStartingPosition(scriptStartPosition); | 362 m_parserBlockingScript.setStartingPosition(scriptStartPosition); |
| 363 } else { | 363 } else { |
| 364 ScriptSourceCode sourceCode(script->textContent(), documentURLFo
rScriptExecution(m_document), scriptStartPosition); | 364 ScriptSourceCode sourceCode(CompressibleString(script->textConte
nt().impl()), documentURLForScriptExecution(m_document), scriptStartPosition); |
| 365 scriptLoader->executeScript(sourceCode); | 365 scriptLoader->executeScript(sourceCode); |
| 366 } | 366 } |
| 367 } else { | 367 } else { |
| 368 requestParsingBlockingScript(script); | 368 requestParsingBlockingScript(script); |
| 369 } | 369 } |
| 370 } | 370 } |
| 371 } | 371 } |
| 372 | 372 |
| 373 DEFINE_TRACE(HTMLScriptRunner) | 373 DEFINE_TRACE(HTMLScriptRunner) |
| 374 { | 374 { |
| 375 visitor->trace(m_document); | 375 visitor->trace(m_document); |
| 376 visitor->trace(m_host); | 376 visitor->trace(m_host); |
| 377 visitor->trace(m_parserBlockingScript); | 377 visitor->trace(m_parserBlockingScript); |
| 378 visitor->trace(m_scriptsToExecuteAfterParsing); | 378 visitor->trace(m_scriptsToExecuteAfterParsing); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace blink | 381 } // namespace blink |
| OLD | NEW |