Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 1b88ddbf87c87a51d523e8985ea2cfadeba4c3c7..f5e35beb63937283c925a1acf0c8b32147193365 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -84,6 +84,7 @@ |
#include "core/html/HTMLDocument.h" |
#include "core/html/HTMLElement.h" |
#include "core/html/HTMLFormControlsCollection.h" |
+#include "core/html/HTMLFrameElementBase.h" |
#include "core/html/HTMLFrameOwnerElement.h" |
#include "core/html/HTMLLabelElement.h" |
#include "core/html/HTMLOptionsCollection.h" |
@@ -3529,8 +3530,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 (isHTMLIFrameElement(*this) |
- || isHTMLFrameElement(*this) |
+ if (isHTMLFrameElementBase(*this) |
|| isHTMLEmbedElement(*this) |
|| isHTMLObjectElement(*this) |
|| isHTMLAppletElement(*this) |