Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index f7f3bf246f50a5e5fea9f46822a0c17bea0c7030..e8a1a598f7eb8bfb67a847de39e337722029ec65 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -90,6 +90,7 @@ |
#include "core/html/HTMLFrameElementBase.h" |
#include "core/html/HTMLFrameOwnerElement.h" |
#include "core/html/HTMLOptionsCollection.h" |
+#include "core/html/HTMLPlugInElement.h" |
#include "core/html/HTMLTableRowsCollection.h" |
#include "core/html/HTMLTemplateElement.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
@@ -3322,11 +3323,7 @@ bool Element::supportsStyleSharing() const |
// Turn off style sharing for elements that can gain layers for reasons outside of the style system. |
// See comments in RenderObject::setStyle(). |
// FIXME: Why does gaining a layer from outside the style system require disabling sharing? |
- if (isHTMLFrameElementBase(*this) |
- || isHTMLEmbedElement(*this) |
- || isHTMLObjectElement(*this) |
- || isHTMLAppletElement(*this) |
- || isHTMLCanvasElement(*this)) |
+ if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCanvasElement(*this)) |
return false; |
if (FullscreenElementStack::isActiveFullScreenElement(*this)) |
return false; |