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

Unified Diff: Source/core/css/resolver/StyleAdjuster.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 | « no previous file | Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleAdjuster.cpp
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp
index 035c76b4448b94c1c40045cdaf0a330d94e89536..58bdb9013665a8dc50774aabdf910a1ee6a90f99 100644
--- a/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/Source/core/css/resolver/StyleAdjuster.cpp
@@ -37,6 +37,7 @@
#include "core/dom/NodeRenderStyle.h"
#include "core/html/HTMLIFrameElement.h"
#include "core/html/HTMLInputElement.h"
+#include "core/html/HTMLPlugInElement.h"
#include "core/html/HTMLTableCellElement.h"
#include "core/html/HTMLTextAreaElement.h"
#include "core/frame/FrameView.h"
@@ -371,6 +372,11 @@ void StyleAdjuster::adjustStyleForTagName(RenderStyle* style, RenderStyle* paren
addIntrinsicMargins(style);
return;
}
+
+ if (isHTMLPlugInElement(element)) {
+ style->setRequiresAcceleratedCompositingForExternalReasons(toHTMLPlugInElement(element).shouldAccelerate());
+ return;
+ }
}
void StyleAdjuster::adjustOverflow(RenderStyle* style)
« no previous file with comments | « no previous file | Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698