OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/html/MediaDocument.h" | 28 #include "core/html/MediaDocument.h" |
29 | 29 |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "bindings/v8/ScriptController.h" | |
32 #include "core/dom/EventNames.h" | 31 #include "core/dom/EventNames.h" |
33 #include "core/dom/ExceptionCodePlaceholder.h" | 32 #include "core/dom/ExceptionCodePlaceholder.h" |
34 #include "core/dom/KeyboardEvent.h" | 33 #include "core/dom/KeyboardEvent.h" |
35 #include "core/dom/NodeList.h" | 34 #include "core/dom/NodeList.h" |
36 #include "core/dom/RawDataDocumentParser.h" | 35 #include "core/dom/RawDataDocumentParser.h" |
37 #include "core/html/HTMLEmbedElement.h" | 36 #include "core/html/HTMLEmbedElement.h" |
38 #include "core/html/HTMLHtmlElement.h" | 37 #include "core/html/HTMLHtmlElement.h" |
39 #include "core/html/HTMLSourceElement.h" | 38 #include "core/html/HTMLSourceElement.h" |
40 #include "core/html/HTMLVideoElement.h" | 39 #include "core/html/HTMLVideoElement.h" |
41 #include "core/loader/DocumentLoader.h" | 40 #include "core/loader/DocumentLoader.h" |
42 #include "core/loader/FrameLoader.h" | 41 #include "core/loader/FrameLoader.h" |
43 #include "core/loader/FrameLoaderClient.h" | |
44 #include "core/page/Frame.h" | 42 #include "core/page/Frame.h" |
45 | 43 |
46 namespace WebCore { | 44 namespace WebCore { |
47 | 45 |
48 using namespace HTMLNames; | 46 using namespace HTMLNames; |
49 | 47 |
50 // FIXME: Share more code with PluginDocumentParser. | 48 // FIXME: Share more code with PluginDocumentParser. |
51 class MediaDocumentParser : public RawDataDocumentParser { | 49 class MediaDocumentParser : public RawDataDocumentParser { |
52 public: | 50 public: |
53 static PassRefPtr<MediaDocumentParser> create(MediaDocument* document) | 51 static PassRefPtr<MediaDocumentParser> create(MediaDocument* document) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 DocumentLoader* documentLoader = loader(); | 212 DocumentLoader* documentLoader = loader(); |
215 ASSERT(documentLoader); | 213 ASSERT(documentLoader); |
216 if (documentLoader) | 214 if (documentLoader) |
217 embedElement->setAttribute(typeAttr, documentLoader->writer()->mimeT
ype()); | 215 embedElement->setAttribute(typeAttr, documentLoader->writer()->mimeT
ype()); |
218 | 216 |
219 videoElement->parentNode()->replaceChild(embedElement, videoElement, IGN
ORE_EXCEPTION); | 217 videoElement->parentNode()->replaceChild(embedElement, videoElement, IGN
ORE_EXCEPTION); |
220 } | 218 } |
221 } | 219 } |
222 | 220 |
223 } | 221 } |
OLD | NEW |