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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 HTMLFrameOwnerElement::trace(visitor); | 82 HTMLFrameOwnerElement::trace(visitor); |
83 } | 83 } |
84 | 84 |
85 void HTMLPlugInElement::setPersistedPluginWidget(Widget* widget) | 85 void HTMLPlugInElement::setPersistedPluginWidget(Widget* widget) |
86 { | 86 { |
87 if (m_persistedPluginWidget == widget) | 87 if (m_persistedPluginWidget == widget) |
88 return; | 88 return; |
89 if (m_persistedPluginWidget) { | 89 if (m_persistedPluginWidget) { |
90 if (m_persistedPluginWidget->isPluginView()) { | 90 if (m_persistedPluginWidget->isPluginView()) { |
91 m_persistedPluginWidget->hide(); | 91 m_persistedPluginWidget->hide(); |
92 m_persistedPluginWidget->dispose(); | 92 disposeWidgetSoon(m_persistedPluginWidget.release()); |
93 } else { | 93 } else { |
94 ASSERT(m_persistedPluginWidget->isFrameView() || m_persistedPluginWi
dget->isRemoteFrameView()); | 94 ASSERT(m_persistedPluginWidget->isFrameView() || m_persistedPluginWi
dget->isRemoteFrameView()); |
95 } | 95 } |
96 } | 96 } |
97 m_persistedPluginWidget = widget; | 97 m_persistedPluginWidget = widget; |
98 } | 98 } |
99 | 99 |
100 bool HTMLPlugInElement::canProcessDrag() const | 100 bool HTMLPlugInElement::canProcessDrag() const |
101 { | 101 { |
102 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->canProcessDrag(); | 102 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->canProcessDrag(); |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 590 |
591 void HTMLPlugInElement::lazyReattachIfNeeded() | 591 void HTMLPlugInElement::lazyReattachIfNeeded() |
592 { | 592 { |
593 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma
geType()) { | 593 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma
geType()) { |
594 lazyReattachIfAttached(); | 594 lazyReattachIfAttached(); |
595 setPersistedPluginWidget(nullptr); | 595 setPersistedPluginWidget(nullptr); |
596 } | 596 } |
597 } | 597 } |
598 | 598 |
599 } // namespace blink | 599 } // namespace blink |
OLD | NEW |