Index: Source/core/plugins/IFrameShimSupport.cpp |
diff --git a/Source/core/plugins/IFrameShimSupport.cpp b/Source/core/plugins/IFrameShimSupport.cpp |
index 95bccd1c1c982c32b4f6e59ba23432a909537260..4d7af1e550b703ab860d9ae9db2f0a4c64f1499f 100644 |
--- a/Source/core/plugins/IFrameShimSupport.cpp |
+++ b/Source/core/plugins/IFrameShimSupport.cpp |
@@ -143,10 +143,10 @@ void getPluginOcclusions(Element* element, Widget* parentWidget, const IntRect& |
const FrameView* frameView = toFrameView((*it).get()); |
// Check to make sure we can get both the element and the RenderObject |
// for this FrameView, if we can't just move on to the next object. |
- if (!frameView->frame()->ownerElement() || !frameView->frame()->ownerElement()->renderer()) |
+ HTMLElement* element = frameView->frame().ownerElement(); |
+ if (!element || element->renderer()) |
continue; |
- HTMLElement* element = frameView->frame()->ownerElement(); |
RenderObject* iframeRenderer = element->renderer(); |
if (element->hasTagName(HTMLNames::iframeTag) |