Chromium Code Reviews| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 Vector<String> paramNames; | 166 Vector<String> paramNames; |
| 167 Vector<String> paramValues; | 167 Vector<String> paramValues; |
| 168 | 168 |
| 169 paramNames.append("type"); | 169 paramNames.append("type"); |
| 170 paramValues.append(m_serviceType); | 170 paramValues.append(m_serviceType); |
| 171 | 171 |
| 172 bool useFallback = false; | 172 bool useFallback = false; |
| 173 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); | 173 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); |
| 174 } | 174 } |
| 175 | 175 |
| 176 bool HTMLPlugInElement::shouldAccelerate() | |
|
esprehn
2014/06/10 02:19:09
const ?
| |
| 177 { | |
| 178 if (Widget* widget = ownedWidget()) | |
| 179 return widget->isPluginView() && toPluginView(widget)->platformLayer(); | |
| 180 return false; | |
| 181 } | |
| 182 | |
| 176 void HTMLPlugInElement::detach(const AttachContext& context) | 183 void HTMLPlugInElement::detach(const AttachContext& context) |
| 177 { | 184 { |
| 178 // Update the widget the next time we attach (detaching destroys the plugin) . | 185 // Update the widget the next time we attach (detaching destroys the plugin) . |
| 179 // FIXME: None of this "needsWidgetUpdate" related code looks right. | 186 // FIXME: None of this "needsWidgetUpdate" related code looks right. |
| 180 if (renderer() && !useFallbackContent()) | 187 if (renderer() && !useFallbackContent()) |
| 181 setNeedsWidgetUpdate(true); | 188 setNeedsWidgetUpdate(true); |
| 182 if (m_isDelayingLoadEvent) { | 189 if (m_isDelayingLoadEvent) { |
| 183 m_isDelayingLoadEvent = false; | 190 m_isDelayingLoadEvent = false; |
| 184 document().decrementLoadEventDelayCount(); | 191 document().decrementLoadEventDelayCount(); |
| 185 } | 192 } |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 559 { | 566 { |
| 560 return false; | 567 return false; |
| 561 } | 568 } |
| 562 | 569 |
| 563 bool HTMLPlugInElement::useFallbackContent() const | 570 bool HTMLPlugInElement::useFallbackContent() const |
| 564 { | 571 { |
| 565 return hasAuthorShadowRoot(); | 572 return hasAuthorShadowRoot(); |
| 566 } | 573 } |
| 567 | 574 |
| 568 } | 575 } |
| OLD | NEW |