| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 Vector<String> paramNames; | 172 Vector<String> paramNames; |
| 173 Vector<String> paramValues; | 173 Vector<String> paramValues; |
| 174 | 174 |
| 175 paramNames.append("type"); | 175 paramNames.append("type"); |
| 176 paramValues.append(m_serviceType); | 176 paramValues.append(m_serviceType); |
| 177 | 177 |
| 178 bool useFallback = false; | 178 bool useFallback = false; |
| 179 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); | 179 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool HTMLPlugInElement::shouldAccelerate() const |
| 183 { |
| 184 if (Widget* widget = ownedWidget()) |
| 185 return widget->isPluginView() && toPluginView(widget)->platformLayer(); |
| 186 return false; |
| 187 } |
| 188 |
| 182 void HTMLPlugInElement::detach(const AttachContext& context) | 189 void HTMLPlugInElement::detach(const AttachContext& context) |
| 183 { | 190 { |
| 184 // Update the widget the next time we attach (detaching destroys the plugin)
. | 191 // Update the widget the next time we attach (detaching destroys the plugin)
. |
| 185 // FIXME: None of this "needsWidgetUpdate" related code looks right. | 192 // FIXME: None of this "needsWidgetUpdate" related code looks right. |
| 186 if (renderer() && !useFallbackContent()) | 193 if (renderer() && !useFallbackContent()) |
| 187 setNeedsWidgetUpdate(true); | 194 setNeedsWidgetUpdate(true); |
| 188 if (m_isDelayingLoadEvent) { | 195 if (m_isDelayingLoadEvent) { |
| 189 m_isDelayingLoadEvent = false; | 196 m_isDelayingLoadEvent = false; |
| 190 document().decrementLoadEventDelayCount(); | 197 document().decrementLoadEventDelayCount(); |
| 191 } | 198 } |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 { | 572 { |
| 566 return false; | 573 return false; |
| 567 } | 574 } |
| 568 | 575 |
| 569 bool HTMLPlugInElement::useFallbackContent() const | 576 bool HTMLPlugInElement::useFallbackContent() const |
| 570 { | 577 { |
| 571 return hasAuthorShadowRoot(); | 578 return hasAuthorShadowRoot(); |
| 572 } | 579 } |
| 573 | 580 |
| 574 } | 581 } |
| OLD | NEW |