| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 m_serviceType)); | 237 m_serviceType)); |
| 238 | 238 |
| 239 KURL url; | 239 KURL url; |
| 240 // CSP can block src-less objects. | 240 // CSP can block src-less objects. |
| 241 if (!allowedToLoadObject(url, m_serviceType)) | 241 if (!allowedToLoadObject(url, m_serviceType)) |
| 242 return; | 242 return; |
| 243 | 243 |
| 244 Vector<String> paramNames; | 244 Vector<String> paramNames; |
| 245 Vector<String> paramValues; | 245 Vector<String> paramValues; |
| 246 | 246 |
| 247 paramNames.append("type"); | 247 paramNames.push_back("type"); |
| 248 paramValues.append(m_serviceType); | 248 paramValues.push_back(m_serviceType); |
| 249 | 249 |
| 250 bool useFallback = false; | 250 bool useFallback = false; |
| 251 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); | 251 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); |
| 252 } | 252 } |
| 253 | 253 |
| 254 bool HTMLPlugInElement::shouldAccelerate() const { | 254 bool HTMLPlugInElement::shouldAccelerate() const { |
| 255 if (Widget* widget = ownedWidget()) | 255 if (Widget* widget = ownedWidget()) |
| 256 return widget->isPluginView() && toPluginView(widget)->platformLayer(); | 256 return widget->isPluginView() && toPluginView(widget)->platformLayer(); |
| 257 return false; | 257 return false; |
| 258 } | 258 } |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 | 648 |
| 649 void HTMLPlugInElement::lazyReattachIfNeeded() { | 649 void HTMLPlugInElement::lazyReattachIfNeeded() { |
| 650 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && | 650 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && |
| 651 !isImageType()) { | 651 !isImageType()) { |
| 652 lazyReattachIfAttached(); | 652 lazyReattachIfAttached(); |
| 653 setPersistedPluginWidget(nullptr); | 653 setPersistedPluginWidget(nullptr); |
| 654 } | 654 } |
| 655 } | 655 } |
| 656 | 656 |
| 657 } // namespace blink | 657 } // namespace blink |
| OLD | NEW |