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) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "core/html/HTMLObjectElement.h" | 25 #include "core/html/HTMLObjectElement.h" |
26 | 26 |
27 #include "bindings/core/v8/ScriptEventListener.h" | 27 #include "bindings/core/v8/ScriptEventListener.h" |
28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
29 #include "core/dom/Attribute.h" | 29 #include "core/dom/Attribute.h" |
30 #include "core/dom/ElementTraversal.h" | 30 #include "core/dom/ElementTraversal.h" |
31 #include "core/dom/TagCollection.h" | 31 #include "core/dom/TagCollection.h" |
32 #include "core/dom/Text.h" | 32 #include "core/dom/Text.h" |
33 #include "core/dom/shadow/ShadowRoot.h" | 33 #include "core/dom/shadow/ShadowRoot.h" |
34 #include "core/fetch/ImageResource.h" | 34 #include "core/fetch/ImageResource.h" |
| 35 #include "core/frame/Settings.h" |
35 #include "core/html/FormDataList.h" | 36 #include "core/html/FormDataList.h" |
36 #include "core/html/HTMLDocument.h" | 37 #include "core/html/HTMLDocument.h" |
37 #include "core/html/HTMLImageLoader.h" | 38 #include "core/html/HTMLImageLoader.h" |
38 #include "core/html/HTMLMetaElement.h" | 39 #include "core/html/HTMLMetaElement.h" |
39 #include "core/html/HTMLParamElement.h" | 40 #include "core/html/HTMLParamElement.h" |
40 #include "core/html/parser/HTMLParserIdioms.h" | 41 #include "core/html/parser/HTMLParserIdioms.h" |
41 #include "core/frame/Settings.h" | 42 #include "core/layout/LayoutEmbeddedObject.h" |
42 #include "core/plugins/PluginView.h" | 43 #include "core/plugins/PluginView.h" |
43 #include "core/rendering/RenderEmbeddedObject.h" | |
44 #include "platform/MIMETypeRegistry.h" | 44 #include "platform/MIMETypeRegistry.h" |
45 #include "platform/Widget.h" | 45 #include "platform/Widget.h" |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 using namespace HTMLNames; | 49 using namespace HTMLNames; |
50 | 50 |
51 inline HTMLObjectElement::HTMLObjectElement(Document& document, HTMLFormElement*
form, bool createdByParser) | 51 inline HTMLObjectElement::HTMLObjectElement(Document& document, HTMLFormElement*
form, bool createdByParser) |
52 : HTMLPlugInElement(objectTag, document, createdByParser, ShouldNotPreferPlu
gInsForImages) | 52 : HTMLPlugInElement(objectTag, document, createdByParser, ShouldNotPreferPlu
gInsForImages) |
53 , m_useFallbackContent(false) | 53 , m_useFallbackContent(false) |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 setNeedsWidgetUpdate(true); | 256 setNeedsWidgetUpdate(true); |
257 if (needsInvalidation) | 257 if (needsInvalidation) |
258 lazyReattachIfNeeded(); | 258 lazyReattachIfNeeded(); |
259 } | 259 } |
260 | 260 |
261 // FIXME: This should be unified with HTMLEmbedElement::updateWidget and | 261 // FIXME: This should be unified with HTMLEmbedElement::updateWidget and |
262 // moved down into HTMLPluginElement.cpp | 262 // moved down into HTMLPluginElement.cpp |
263 void HTMLObjectElement::updateWidgetInternal() | 263 void HTMLObjectElement::updateWidgetInternal() |
264 { | 264 { |
265 ASSERT(!renderEmbeddedObject()->showsUnavailablePluginIndicator()); | 265 ASSERT(!layoutEmbeddedObject()->showsUnavailablePluginIndicator()); |
266 ASSERT(needsWidgetUpdate()); | 266 ASSERT(needsWidgetUpdate()); |
267 setNeedsWidgetUpdate(false); | 267 setNeedsWidgetUpdate(false); |
268 // FIXME: This should ASSERT isFinishedParsingChildren() instead. | 268 // FIXME: This should ASSERT isFinishedParsingChildren() instead. |
269 if (!isFinishedParsingChildren()) { | 269 if (!isFinishedParsingChildren()) { |
270 dispatchErrorEvent(); | 270 dispatchErrorEvent(); |
271 return; | 271 return; |
272 } | 272 } |
273 | 273 |
274 // FIXME: I'm not sure it's ever possible to get into updateWidget during a | 274 // FIXME: I'm not sure it's ever possible to get into updateWidget during a |
275 // removal, but just in case we should avoid loading the frame to prevent | 275 // removal, but just in case we should avoid loading the frame to prevent |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 { | 458 { |
459 return fastHasAttribute(usemapAttr); | 459 return fastHasAttribute(usemapAttr); |
460 } | 460 } |
461 | 461 |
462 bool HTMLObjectElement::useFallbackContent() const | 462 bool HTMLObjectElement::useFallbackContent() const |
463 { | 463 { |
464 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 464 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
465 } | 465 } |
466 | 466 |
467 } | 467 } |
OLD | NEW |