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

Unified Diff: Source/core/dom/XMLDocument.h

Issue 268803005: Replace SVGDocument by XMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add rootElement() variant Created 6 years, 7 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/dom/DOMImplementation.cpp ('k') | Source/core/fetch/DocumentResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/XMLDocument.h
diff --git a/Source/core/dom/XMLDocument.h b/Source/core/dom/XMLDocument.h
index b65b19ca4252db5e31af60a994e778762187b971..62c2fc874e1217c8e8e0cd58d2ea9ed502339e2b 100644
--- a/Source/core/dom/XMLDocument.h
+++ b/Source/core/dom/XMLDocument.h
@@ -31,7 +31,7 @@
namespace WebCore {
-class XMLDocument : public Document {
+class XMLDocument FINAL : public Document {
public:
static PassRefPtr<XMLDocument> create(const DocumentInit& initializer = DocumentInit())
{
@@ -43,6 +43,11 @@ public:
return adoptRef(new XMLDocument(initializer, XMLDocumentClass | XHTMLDocumentClass));
}
+ static PassRefPtr<XMLDocument> createSVG(const DocumentInit& initializer = DocumentInit())
+ {
+ return adoptRef(new XMLDocument(initializer, XMLDocumentClass | SVGDocumentClass));
+ }
+
protected:
XMLDocument(const DocumentInit&, DocumentClassFlags documentClasses);
};
« no previous file with comments | « Source/core/dom/DOMImplementation.cpp ('k') | Source/core/fetch/DocumentResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698