| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index 60b4d72e3c9f5527a56ed2246847956c2748d52b..535cefc90e7083f6f905545ba75faa40250234d7 100644
|
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -1036,14 +1036,15 @@ void XMLDocumentParser::endElementNs()
|
| ASSERT(!m_pendingScript);
|
| m_requestingScript = true;
|
|
|
| - if (scriptLoader->prepareScript(m_scriptStartPosition, ScriptLoader::AllowLegacyTypeInTypeAttribute)) {
|
| + ResourcePtr<ScriptResource> resource;
|
| + if (scriptLoader->prepareScript(&resource, 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 = scriptLoader->resource();
|
| + m_pendingScript = resource;
|
| m_scriptElement = element;
|
| m_pendingScript->addClient(this);
|
|
|
|
|