Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Unified Diff: third_party/WebKit/Source/modules/plugins/PluginOcclusionSupport.cpp

Issue 2728613002: Rename platform/Widget to platform/FrameViewBase in modules. (Closed)
Patch Set: Rename platform/Widget to platform/FrameViewBase in modules. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698