Index: Source/core/plugins/PluginOcclusionSupport.cpp |
diff --git a/Source/core/plugins/PluginOcclusionSupport.cpp b/Source/core/plugins/PluginOcclusionSupport.cpp |
index 3481568bc46d452a858721f3a993e0548964d379..d6379966c33548188dcba20ffe3ce2ea778872c9 100644 |
--- a/Source/core/plugins/PluginOcclusionSupport.cpp |
+++ b/Source/core/plugins/PluginOcclusionSupport.cpp |
@@ -179,7 +179,7 @@ void getPluginOcclusions(Element* element, Widget* parentWidget, const IntRect& |
RenderObject* iframeRenderer = element->renderer(); |
- if (element->hasTagName(HTMLNames::iframeTag) && intersectsRect(iframeRenderer, frameRect)) { |
+ if (isHTMLIFrameElement(*element) && intersectsRect(iframeRenderer, frameRect)) { |
getObjectStack(iframeRenderer, &iframeZstack); |
if (iframeIsAbovePlugin(iframeZstack, pluginZstack)) |
addToOcclusions(toRenderBox(iframeRenderer), occlusions); |