Index: Source/WebCore/rendering/RenderLayerCompositor.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderLayerCompositor.cpp (revision 107824) |
+++ Source/WebCore/rendering/RenderLayerCompositor.cpp (working copy) |
@@ -1262,7 +1262,7 @@ |
// Parent document content needs to be able to render on top of a composited frame, so correct behavior |
// is to have the parent document become composited too. However, this can cause problems on platforms that |
// use native views for frames (like Mac), so disable that behavior on those platforms for now. |
- HTMLFrameOwnerElement* ownerElement = enclosingFrameElement(); |
+ HTMLFrameOwnerElement* ownerElement = m_renderView->document()->ownerElement(); |
RenderObject* renderer = ownerElement ? ownerElement->renderer() : 0; |
// If we are the top-level frame, don't propagate. |
@@ -1293,14 +1293,6 @@ |
return false; |
} |
-HTMLFrameOwnerElement* RenderLayerCompositor::enclosingFrameElement() const |
-{ |
- if (HTMLFrameOwnerElement* ownerElement = m_renderView->document()->ownerElement()) |
- return (ownerElement->hasTagName(iframeTag) || ownerElement->hasTagName(frameTag) || ownerElement->hasTagName(objectTag)) ? ownerElement : 0; |
- |
- return 0; |
-} |
- |
bool RenderLayerCompositor::needsToBeComposited(const RenderLayer* layer) const |
{ |
if (!canBeComposited(layer)) |