| 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 #include "core/dom/DOMImplementation.h" | 26 #include "core/dom/DOMImplementation.h" |
| 27 | 27 |
| 28 #include "HTMLDocument.h" | |
| 29 #include "HTMLNames.h" | 28 #include "HTMLNames.h" |
| 30 #include "HTMLViewSourceDocument.h" | |
| 31 #include "ImageDocument.h" | |
| 32 #include "MediaDocument.h" | |
| 33 #include "PluginDocument.h" | |
| 34 #include "TextDocument.h" | |
| 35 #include "XMLNames.h" | 29 #include "XMLNames.h" |
| 36 #include "core/css/CSSStyleSheet.h" | 30 #include "core/css/CSSStyleSheet.h" |
| 37 #include "core/css/MediaList.h" | 31 #include "core/css/MediaList.h" |
| 38 #include "core/css/StyleSheetContents.h" | 32 #include "core/css/StyleSheetContents.h" |
| 39 #include "core/dom/ContextFeatures.h" | 33 #include "core/dom/ContextFeatures.h" |
| 40 #include "core/dom/DocumentType.h" | 34 #include "core/dom/DocumentType.h" |
| 41 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 42 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
| 37 #include "core/html/HTMLDocument.h" |
| 38 #include "core/html/HTMLViewSourceDocument.h" |
| 39 #include "core/html/ImageDocument.h" |
| 40 #include "core/html/MediaDocument.h" |
| 41 #include "core/html/PluginDocument.h" |
| 42 #include "core/html/TextDocument.h" |
| 43 #include "core/loader/FrameLoader.h" | 43 #include "core/loader/FrameLoader.h" |
| 44 #include "core/loader/FrameLoaderClient.h" | 44 #include "core/loader/FrameLoaderClient.h" |
| 45 #include "core/page/Frame.h" | 45 #include "core/page/Frame.h" |
| 46 #include "core/page/Page.h" | 46 #include "core/page/Page.h" |
| 47 #include "core/page/SecurityOrigin.h" | 47 #include "core/page/SecurityOrigin.h" |
| 48 #include "core/page/Settings.h" | 48 #include "core/page/Settings.h" |
| 49 #include "core/platform/ContentType.h" | 49 #include "core/platform/ContentType.h" |
| 50 #include "core/platform/MIMETypeRegistry.h" | 50 #include "core/platform/MIMETypeRegistry.h" |
| 51 #include "core/platform/graphics/Image.h" | 51 #include "core/platform/graphics/Image.h" |
| 52 #include "core/platform/graphics/MediaPlayer.h" | 52 #include "core/platform/graphics/MediaPlayer.h" |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 if (type == "image/svg+xml") | 451 if (type == "image/svg+xml") |
| 452 return SVGDocument::create(frame, url); | 452 return SVGDocument::create(frame, url); |
| 453 #endif | 453 #endif |
| 454 if (isXMLMIMEType(type)) | 454 if (isXMLMIMEType(type)) |
| 455 return Document::create(frame, url); | 455 return Document::create(frame, url); |
| 456 | 456 |
| 457 return HTMLDocument::create(frame, url); | 457 return HTMLDocument::create(frame, url); |
| 458 } | 458 } |
| 459 | 459 |
| 460 } | 460 } |
| OLD | NEW |