Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp

Issue 2562093002: Move DocumentXMLTreeViewer off of private script (Closed)
Patch Set: Use V8PerIsolateData::mainThreadIsolate() Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
index 807c6647c3ee8ee098c32fb7908aff7ac8a7e598..dc67a7045594120c3170fee3de37923296482e5c 100644
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
@@ -30,7 +30,6 @@
#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/HTMLNames.h"
#include "core/XMLNSNames.h"
#include "core/dom/CDATASection.h"
@@ -56,6 +55,7 @@
#include "core/loader/FrameLoader.h"
#include "core/loader/ImageLoader.h"
#include "core/svg/graphics/SVGImage.h"
+#include "core/xml/DocumentXMLTreeViewer.h"
#include "core/xml/DocumentXSLT.h"
#include "core/xml/parser/SharedBufferReader.h"
#include "core/xml/parser/XMLDocumentParserScope.h"
@@ -1540,12 +1540,8 @@ void XMLDocumentParser::doEnd() {
bool xmlViewerMode = !m_sawError && !m_sawCSS && !m_sawXSLTransform &&
hasNoStyleInformation(document());
if (xmlViewerMode) {
- const char noStyleMessage[] =
- "This XML file does not appear to have any style information "
- "associated with it. The document tree is shown below.";
document()->setIsViewSource(true);
- V8Document::PrivateScript::transformDocumentToTreeViewMethod(
- document()->frame(), document(), noStyleMessage);
+ transformDocumentToXMLTreeView(*document());
} else if (m_sawXSLTransform) {
xmlDocPtr doc =
xmlDocPtrForString(document(), m_originalSourceForTransform.toString(),
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXMLTreeViewer.js ('k') | third_party/WebKit/public/blink_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698