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

Unified Diff: Source/web/WebPluginContainerImpl.cpp

Issue 328553004: Get rid of scheduleSVGFilterLayerUpdateHack call for plugins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/web/WebPluginContainerImpl.cpp
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
index 345eff5e97447b5ef2ed7a8101f562e9aa2d1248..d453ba73110b64a1398196feaf63b577e389178a 100644
--- a/Source/web/WebPluginContainerImpl.cpp
+++ b/Source/web/WebPluginContainerImpl.cpp
@@ -290,8 +290,10 @@ void WebPluginContainerImpl::setWebLayer(WebLayer* layer)
// If anyone of the layers is null we need to switch between hardware
// and software compositing.
- if (!m_webLayer || !layer)
- m_element->scheduleSVGFilterLayerUpdateHack();
+ if (!m_webLayer || !layer) {
+ m_element->setNeedsCompositingUpdate();
+ m_element->setNeedsStyleRecalc(LocalStyleChange);
esprehn 2014/06/10 02:19:09 Can you add a comment why you need to trigger this
+ }
if (m_webLayer)
GraphicsLayer::unregisterContentsLayer(m_webLayer);
if (layer)

Powered by Google App Engine
This is Rietveld 408576698