| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 return false; | 490 return false; |
| 491 } | 491 } |
| 492 | 492 |
| 493 if (renderer) { | 493 if (renderer) { |
| 494 setWidget(widget); | 494 setWidget(widget); |
| 495 m_persistedPluginWidget = nullptr; | 495 m_persistedPluginWidget = nullptr; |
| 496 } else if (widget != m_persistedPluginWidget) { | 496 } else if (widget != m_persistedPluginWidget) { |
| 497 m_persistedPluginWidget = widget; | 497 m_persistedPluginWidget = widget; |
| 498 } | 498 } |
| 499 document().setContainsPlugins(); | 499 document().setContainsPlugins(); |
| 500 scheduleSVGFilterLayerUpdateHack(); | 500 scheduleSVGEffectsLayerUpdateHack(); |
| 501 return true; | 501 return true; |
| 502 } | 502 } |
| 503 | 503 |
| 504 bool HTMLPlugInElement::shouldUsePlugin(const KURL& url, const String& mimeType,
bool hasFallback, bool& useFallback) | 504 bool HTMLPlugInElement::shouldUsePlugin(const KURL& url, const String& mimeType,
bool hasFallback, bool& useFallback) |
| 505 { | 505 { |
| 506 // Allow other plug-ins to win over QuickTime because if the user has | 506 // Allow other plug-ins to win over QuickTime because if the user has |
| 507 // installed a plug-in that can handle TIFF (which QuickTime can also | 507 // installed a plug-in that can handle TIFF (which QuickTime can also |
| 508 // handle) they probably intended to override QT. | 508 // handle) they probably intended to override QT. |
| 509 if (document().frame()->page() && (mimeType == "image/tiff" || mimeType == "
image/tif" || mimeType == "image/x-tiff")) { | 509 if (document().frame()->page() && (mimeType == "image/tiff" || mimeType == "
image/tif" || mimeType == "image/x-tiff")) { |
| 510 const PluginData* pluginData = document().frame()->page()->pluginData(); | 510 const PluginData* pluginData = document().frame()->page()->pluginData(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 { | 573 { |
| 574 return false; | 574 return false; |
| 575 } | 575 } |
| 576 | 576 |
| 577 bool HTMLPlugInElement::useFallbackContent() const | 577 bool HTMLPlugInElement::useFallbackContent() const |
| 578 { | 578 { |
| 579 return hasAuthorShadowRoot(); | 579 return hasAuthorShadowRoot(); |
| 580 } | 580 } |
| 581 | 581 |
| 582 } | 582 } |
| OLD | NEW |