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

Unified Diff: Source/core/plugins/PluginOcclusionSupport.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/paint/ViewPainter.cpp ('k') | Source/core/svg/SVGAnimateMotionElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/PluginOcclusionSupport.cpp
diff --git a/Source/core/plugins/PluginOcclusionSupport.cpp b/Source/core/plugins/PluginOcclusionSupport.cpp
index 03e2fde96a947a5643fd4f10510ddbe7631222a4..5a2915e9d45b78738fdc02838edd58edab5ef28c 100644
--- a/Source/core/plugins/PluginOcclusionSupport.cpp
+++ b/Source/core/plugins/PluginOcclusionSupport.cpp
@@ -150,7 +150,7 @@ static const Element* topLayerAncestor(const Element* element)
// they occur higher in the stacking order.
void getPluginOcclusions(Element* element, Widget* parentWidget, const IntRect& frameRect, Vector<IntRect>& occlusions)
{
- LayoutObject* pluginNode = element->renderer();
+ LayoutObject* pluginNode = element->layoutObject();
ASSERT(pluginNode);
if (!pluginNode->style())
return;
@@ -175,10 +175,10 @@ void getPluginOcclusions(Element* element, Widget* parentWidget, const IntRect&
// for this FrameView, if we can't just move on to the next object.
// FIXME: Plugin occlusion by remote frames is probably broken.
HTMLElement* element = frameView->frame().deprecatedLocalOwner();
- if (!element || !element->renderer())
+ if (!element || !element->layoutObject())
continue;
- LayoutObject* iframeRenderer = element->renderer();
+ LayoutObject* iframeRenderer = element->layoutObject();
if (isHTMLIFrameElement(*element) && intersectsRect(iframeRenderer, frameRect)) {
getObjectStack(iframeRenderer, &iframeZstack);
@@ -197,7 +197,7 @@ void getPluginOcclusions(Element* element, Widget* parentWidget, const IntRect&
const WillBeHeapVector<RefPtrWillBeMember<Element> >& elements = document->topLayerElements();
size_t start = ancestor ? elements.find(ancestor) + 1 : 0;
for (size_t i = start; i < elements.size(); ++i)
- addTreeToOcclusions(elements[i]->renderer(), frameRect, occlusions);
+ addTreeToOcclusions(elements[i]->layoutObject(), frameRect, occlusions);
}
} // namespace blink
« no previous file with comments | « Source/core/paint/ViewPainter.cpp ('k') | Source/core/svg/SVGAnimateMotionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698