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 <wtf/StdLibExtras.h> | 28 #include <wtf/StdLibExtras.h> |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "XMLNames.h" | |
31 #include "core/css/CSSStyleSheet.h" | 30 #include "core/css/CSSStyleSheet.h" |
32 #include "core/css/MediaList.h" | 31 #include "core/css/MediaList.h" |
33 #include "core/css/StyleSheetContents.h" | 32 #include "core/css/StyleSheetContents.h" |
34 #include "core/dom/ContextFeatures.h" | 33 #include "core/dom/ContextFeatures.h" |
35 #include "core/dom/DocumentType.h" | 34 #include "core/dom/DocumentType.h" |
36 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
37 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
38 #include "core/html/HTMLDocument.h" | 37 #include "core/html/HTMLDocument.h" |
39 #include "core/html/HTMLViewSourceDocument.h" | 38 #include "core/html/HTMLViewSourceDocument.h" |
40 #include "core/html/ImageDocument.h" | 39 #include "core/html/ImageDocument.h" |
41 #include "core/html/MediaDocument.h" | 40 #include "core/html/MediaDocument.h" |
42 #include "core/html/PluginDocument.h" | 41 #include "core/html/PluginDocument.h" |
43 #include "core/html/TextDocument.h" | 42 #include "core/html/TextDocument.h" |
44 #include "core/loader/FrameLoader.h" | 43 #include "core/loader/FrameLoader.h" |
45 #include "core/loader/FrameLoaderClient.h" | |
46 #include "core/page/Frame.h" | 44 #include "core/page/Frame.h" |
47 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
48 #include "core/page/Settings.h" | |
49 #include "core/platform/ContentType.h" | 46 #include "core/platform/ContentType.h" |
50 #include "core/platform/MIMETypeRegistry.h" | 47 #include "core/platform/MIMETypeRegistry.h" |
51 #include "core/platform/graphics/Image.h" | 48 #include "core/platform/graphics/Image.h" |
52 #include "core/platform/graphics/MediaPlayer.h" | 49 #include "core/platform/graphics/MediaPlayer.h" |
53 #include "core/plugins/PluginData.h" | 50 #include "core/plugins/PluginData.h" |
54 #include "weborigin/SecurityOrigin.h" | 51 #include "weborigin/SecurityOrigin.h" |
55 | 52 |
56 #if ENABLE(SVG) | 53 #if ENABLE(SVG) |
57 #include "SVGNames.h" | 54 #include "SVGNames.h" |
58 #include "core/svg/SVGDocument.h" | 55 #include "core/svg/SVGDocument.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 if (type == "image/svg+xml") | 431 if (type == "image/svg+xml") |
435 return SVGDocument::create(frame, url); | 432 return SVGDocument::create(frame, url); |
436 #endif | 433 #endif |
437 if (isXMLMIMEType(type)) | 434 if (isXMLMIMEType(type)) |
438 return Document::create(frame, url); | 435 return Document::create(frame, url); |
439 | 436 |
440 return HTMLDocument::create(frame, url); | 437 return HTMLDocument::create(frame, url); |
441 } | 438 } |
442 | 439 |
443 } | 440 } |
OLD | NEW |