Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 328553004: Get rid of scheduleSVGFilterLayerUpdateHack call for plugins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: get rid of style recalc Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698