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

Unified Diff: Source/core/inspector/DOMPatchSupport.cpp

Issue 144063004: Add support for DOM4's XMLDocument interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove FIXME about XMLDocument.load() Created 6 years, 11 months 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
« no previous file with comments | « Source/core/frame/Window.idl ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/DOMPatchSupport.cpp
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
index d5c7cd5dccff3374c9c3e3df76112fe8ce934aa4..a5dc95cd7136982cfe4566cfd082ff96a7f8c83e 100644
--- a/Source/core/inspector/DOMPatchSupport.cpp
+++ b/Source/core/inspector/DOMPatchSupport.cpp
@@ -39,6 +39,7 @@
#include "core/dom/Document.h"
#include "core/dom/DocumentFragment.h"
#include "core/dom/Node.h"
+#include "core/dom/XMLDocument.h"
#include "core/html/HTMLDocument.h"
#include "core/html/parser/HTMLDocumentParser.h"
#include "core/inspector/DOMEditor.h"
@@ -88,9 +89,9 @@ void DOMPatchSupport::patchDocument(const String& markup)
if (m_document.isHTMLDocument())
newDocument = HTMLDocument::create();
else if (m_document.isXHTMLDocument())
- newDocument = HTMLDocument::createXHTML();
- else if (m_document.isSVGDocument())
- newDocument = Document::create();
+ newDocument = XMLDocument::createXHTML();
+ else if (m_document.isXMLDocument())
+ newDocument = XMLDocument::create();
ASSERT(newDocument);
newDocument->setContextFeatures(m_document.contextFeatures());
« no previous file with comments | « Source/core/frame/Window.idl ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698