OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |