Index: third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp |
diff --git a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp |
index 55c60c4c3215727848c0aa1daed7e9be25e6cd0f..d5724ec3702ed47b36ab6b25ee35227340ca34b7 100644 |
--- a/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp |
+++ b/third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp |
@@ -38,7 +38,7 @@ |
#include "core/html/HTMLFrameOwnerElement.h" |
#include "core/layout/LayoutBox.h" |
#include "core/layout/LayoutObject.h" |
-#include "platform/Widget.h" |
+#include "platform/FrameViewBase.h" |
#include "wtf/HashSet.h" |
// This file provides a utility function to support rendering certain elements |
@@ -153,7 +153,7 @@ static const Element* topLayerAncestor(const Element* element) { |
// page. In a nutshell, iframe elements should occlude plugins when |
// they occur higher in the stacking order. |
void getPluginOcclusions(Element* element, |
- Widget* parentWidget, |
+ FrameViewBase* parentFrameViewBase, |
const IntRect& frameRect, |
Vector<IntRect>& occlusions) { |
LayoutObject* pluginNode = element->layoutObject(); |
@@ -164,10 +164,10 @@ void getPluginOcclusions(Element* element, |
Vector<const LayoutObject*> iframeZstack; |
getObjectStack(pluginNode, &pluginZstack); |
- if (!parentWidget->isFrameView()) |
+ if (!parentFrameViewBase->isFrameView()) |
return; |
- FrameView* parentFrameView = toFrameView(parentWidget); |
+ FrameView* parentFrameView = toFrameView(parentFrameViewBase); |
// Occlusions by iframes. |
const FrameView::ChildrenWidgetSet* children = parentFrameView->children(); |