| Index: trunk/Source/core/xml/parser/XMLDocumentParser.cpp
|
| ===================================================================
|
| --- trunk/Source/core/xml/parser/XMLDocumentParser.cpp (revision 174070)
|
| +++ trunk/Source/core/xml/parser/XMLDocumentParser.cpp (working copy)
|
| @@ -1036,15 +1036,14 @@
|
| ASSERT(!m_pendingScript);
|
| m_requestingScript = true;
|
|
|
| - ScriptPrep prep = scriptLoader->prepareScript(m_scriptStartPosition, ScriptLoader::AllowLegacyTypeInTypeAttribute);
|
| - if (prep.succeeded()) {
|
| + if (scriptLoader->prepareScript(m_scriptStartPosition, ScriptLoader::AllowLegacyTypeInTypeAttribute)) {
|
| // FIXME: Script execution should be shared between
|
| // the libxml2 and Qt XMLDocumentParser implementations.
|
|
|
| if (scriptLoader->readyToBeParserExecuted()) {
|
| scriptLoader->executeScript(ScriptSourceCode(scriptLoader->scriptContent(), document()->url(), m_scriptStartPosition));
|
| } else if (scriptLoader->willBeParserExecuted()) {
|
| - m_pendingScript = prep.resource();
|
| + m_pendingScript = scriptLoader->resource();
|
| m_scriptElement = element;
|
| m_pendingScript->addClient(this);
|
|
|
|
|