| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index dc41f40184b8a2b7a6cda1536f927dd9c9c426f8..bf2b609bec58503782d9d9a3e7e449197e0de86d 100644
|
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "bindings/core/v8/ExceptionStatePlaceholder.h"
|
| #include "bindings/core/v8/ScriptController.h"
|
| #include "bindings/core/v8/ScriptSourceCode.h"
|
| +#include "bindings/core/v8/V8Document.h"
|
| #include "core/FetchInitiatorTypeNames.h"
|
| #include "core/HTMLNames.h"
|
| #include "core/XMLNSNames.h"
|
| @@ -1470,8 +1471,8 @@ void XMLDocumentParser::doEnd()
|
|
|
| bool xmlViewerMode = !m_sawError && !m_sawCSS && !m_sawXSLTransform && hasNoStyleInformation(document());
|
| if (xmlViewerMode) {
|
| - XMLTreeViewer xmlTreeViewer(document());
|
| - xmlTreeViewer.transformDocumentToTreeView();
|
| + document()->setIsViewSource(true);
|
| + V8Document::PrivateScript::transformDocumentToTreeViewMethod(document()->frame(), document());
|
| } else if (m_sawXSLTransform) {
|
| xmlDocPtr doc = xmlDocPtrForString(document()->fetcher(), m_originalSourceForTransform.toString(), document()->url().string());
|
| document()->setTransformSource(adoptPtr(new TransformSource(doc)));
|
|
|