Index: Source/core/html/HTMLPlugInElement.cpp |
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp |
index 301c502fee18c385a0e92bb2b27deb4d24ab2379..103aae19b23c117226db9f93ff573b38fbeaf836 100644 |
--- a/Source/core/html/HTMLPlugInElement.cpp |
+++ b/Source/core/html/HTMLPlugInElement.cpp |
@@ -179,6 +179,13 @@ void HTMLPlugInElement::createPluginWithoutRenderer() |
loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); |
} |
+bool HTMLPlugInElement::shouldAccelerate() const |
+{ |
+ if (Widget* widget = ownedWidget()) |
+ return widget->isPluginView() && toPluginView(widget)->platformLayer(); |
+ return false; |
+} |
+ |
void HTMLPlugInElement::detach(const AttachContext& context) |
{ |
// Update the widget the next time we attach (detaching destroys the plugin). |