| 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 Apple Computer, Inc. | 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 { | 75 { |
| 76 ASSERT(!m_pluginWrapper); // cleared in detach() | 76 ASSERT(!m_pluginWrapper); // cleared in detach() |
| 77 ASSERT(!m_isDelayingLoadEvent); | 77 ASSERT(!m_isDelayingLoadEvent); |
| 78 | 78 |
| 79 if (m_NPObject) { | 79 if (m_NPObject) { |
| 80 _NPN_ReleaseObject(m_NPObject); | 80 _NPN_ReleaseObject(m_NPObject); |
| 81 m_NPObject = 0; | 81 m_NPObject = 0; |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 void HTMLPlugInElement::trace(Visitor* visitor) |
| 86 { |
| 87 visitor->trace(m_imageLoader); |
| 88 HTMLFrameOwnerElement::trace(visitor); |
| 89 } |
| 90 |
| 85 bool HTMLPlugInElement::canProcessDrag() const | 91 bool HTMLPlugInElement::canProcessDrag() const |
| 86 { | 92 { |
| 87 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->canProcessDrag(); | 93 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->canProcessDrag(); |
| 88 } | 94 } |
| 89 | 95 |
| 90 bool HTMLPlugInElement::willRespondToMouseClickEvents() | 96 bool HTMLPlugInElement::willRespondToMouseClickEvents() |
| 91 { | 97 { |
| 92 if (isDisabledFormControl()) | 98 if (isDisabledFormControl()) |
| 93 return false; | 99 return false; |
| 94 RenderObject* r = renderer(); | 100 RenderObject* r = renderer(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 113 | 119 |
| 114 void HTMLPlugInElement::attach(const AttachContext& context) | 120 void HTMLPlugInElement::attach(const AttachContext& context) |
| 115 { | 121 { |
| 116 HTMLFrameOwnerElement::attach(context); | 122 HTMLFrameOwnerElement::attach(context); |
| 117 | 123 |
| 118 if (!renderer() || useFallbackContent()) | 124 if (!renderer() || useFallbackContent()) |
| 119 return; | 125 return; |
| 120 | 126 |
| 121 if (isImageType()) { | 127 if (isImageType()) { |
| 122 if (!m_imageLoader) | 128 if (!m_imageLoader) |
| 123 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); | 129 m_imageLoader = HTMLImageLoader::create(this); |
| 124 m_imageLoader->updateFromElement(); | 130 m_imageLoader->updateFromElement(); |
| 125 } else if (needsWidgetUpdate() | 131 } else if (needsWidgetUpdate() |
| 126 && renderEmbeddedObject() | 132 && renderEmbeddedObject() |
| 127 && !renderEmbeddedObject()->showsUnavailablePluginIndicator() | 133 && !renderEmbeddedObject()->showsUnavailablePluginIndicator() |
| 128 && !wouldLoadAsNetscapePlugin(m_url, m_serviceType) | 134 && !wouldLoadAsNetscapePlugin(m_url, m_serviceType) |
| 129 && !m_isDelayingLoadEvent) { | 135 && !m_isDelayingLoadEvent) { |
| 130 m_isDelayingLoadEvent = true; | 136 m_isDelayingLoadEvent = true; |
| 131 document().incrementLoadEventDelayCount(); | 137 document().incrementLoadEventDelayCount(); |
| 132 document().loadPluginsSoon(); | 138 document().loadPluginsSoon(); |
| 133 } | 139 } |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 { | 565 { |
| 560 return false; | 566 return false; |
| 561 } | 567 } |
| 562 | 568 |
| 563 bool HTMLPlugInElement::useFallbackContent() const | 569 bool HTMLPlugInElement::useFallbackContent() const |
| 564 { | 570 { |
| 565 return hasAuthorShadowRoot(); | 571 return hasAuthorShadowRoot(); |
| 566 } | 572 } |
| 567 | 573 |
| 568 } | 574 } |
| OLD | NEW |