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

Side by Side Diff: Source/core/dom/DOMImplementation.cpp

Issue 237583016: Remove some dead code in dom/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMImplementation.h ('k') | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 PassRefPtr<DocumentType> DOMImplementation::createDocumentType(const AtomicStrin g& qualifiedName, 191 PassRefPtr<DocumentType> DOMImplementation::createDocumentType(const AtomicStrin g& qualifiedName,
192 const String& publicId, const String& systemId, ExceptionState& exceptionSta te) 192 const String& publicId, const String& systemId, ExceptionState& exceptionSta te)
193 { 193 {
194 AtomicString prefix, localName; 194 AtomicString prefix, localName;
195 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio nState)) 195 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio nState))
196 return nullptr; 196 return nullptr;
197 197
198 return DocumentType::create(&m_document, qualifiedName, publicId, systemId); 198 return DocumentType::create(&m_document, qualifiedName, publicId, systemId);
199 } 199 }
200 200
201 DOMImplementation* DOMImplementation::getInterface(const String& /*feature*/)
202 {
203 return 0;
204 }
205
206 PassRefPtr<XMLDocument> DOMImplementation::createDocument(const AtomicString& na mespaceURI, 201 PassRefPtr<XMLDocument> DOMImplementation::createDocument(const AtomicString& na mespaceURI,
207 const AtomicString& qualifiedName, DocumentType* doctype, ExceptionState& ex ceptionState) 202 const AtomicString& qualifiedName, DocumentType* doctype, ExceptionState& ex ceptionState)
208 { 203 {
209 RefPtr<XMLDocument> doc; 204 RefPtr<XMLDocument> doc;
210 DocumentInit init = DocumentInit::fromContext(m_document.contextDocument()); 205 DocumentInit init = DocumentInit::fromContext(m_document.contextDocument());
211 if (namespaceURI == SVGNames::svgNamespaceURI) { 206 if (namespaceURI == SVGNames::svgNamespaceURI) {
212 // FIXME: This should be an XMLDocument as per DOM4 but we need to get r id of SVGDocument first. 207 // FIXME: This should be an XMLDocument as per DOM4 but we need to get r id of SVGDocument first.
213 // SVGDocument no longer exists in SVG2. 208 // SVGDocument no longer exists in SVG2.
214 doc = SVGDocument::create(init); 209 doc = SVGDocument::create(init);
215 } else if (namespaceURI == HTMLNames::xhtmlNamespaceURI) { 210 } else if (namespaceURI == HTMLNames::xhtmlNamespaceURI) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 return TextDocument::create(init); 375 return TextDocument::create(init);
381 if (type == "image/svg+xml") 376 if (type == "image/svg+xml")
382 return SVGDocument::create(init); 377 return SVGDocument::create(init);
383 if (isXMLMIMEType(type)) 378 if (isXMLMIMEType(type))
384 return XMLDocument::create(init); 379 return XMLDocument::create(init);
385 380
386 return HTMLDocument::create(init); 381 return HTMLDocument::create(init);
387 } 382 }
388 383
389 } 384 }
OLDNEW
« no previous file with comments | « Source/core/dom/DOMImplementation.h ('k') | Source/core/dom/DocumentMarkerController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698