| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 124 } |
| 125 } | 125 } |
| 126 | 126 |
| 127 void HTMLPlugInElement::didMoveToNewDocument(Document& oldDocument) | 127 void HTMLPlugInElement::didMoveToNewDocument(Document& oldDocument) |
| 128 { | 128 { |
| 129 if (m_imageLoader) | 129 if (m_imageLoader) |
| 130 m_imageLoader->elementDidMoveToNewDocument(); | 130 m_imageLoader->elementDidMoveToNewDocument(); |
| 131 HTMLFrameOwnerElement::didMoveToNewDocument(oldDocument); | 131 HTMLFrameOwnerElement::didMoveToNewDocument(oldDocument); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void HTMLPlugInElement::attach(const AttachContext& context) | 134 void HTMLPlugInElement::attachLayoutTree(const AttachContext& context) |
| 135 { | 135 { |
| 136 HTMLFrameOwnerElement::attach(context); | 136 HTMLFrameOwnerElement::attachLayoutTree(context); |
| 137 | 137 |
| 138 if (!layoutObject() || useFallbackContent()) { | 138 if (!layoutObject() || useFallbackContent()) { |
| 139 // If we don't have a layoutObject we have to dispose of any plugins | 139 // If we don't have a layoutObject we have to dispose of any plugins |
| 140 // which we persisted over a reattach. | 140 // which we persisted over a reattach. |
| 141 if (m_persistedPluginWidget) { | 141 if (m_persistedPluginWidget) { |
| 142 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpda
tes; | 142 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpda
tes; |
| 143 setPersistedPluginWidget(nullptr); | 143 setPersistedPluginWidget(nullptr); |
| 144 } | 144 } |
| 145 return; | 145 return; |
| 146 } | 146 } |
| (...skipping 443 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 |