Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index f03a18427a88188a96ee34add484704452513d62..7f2fd85aeceab4ee2a160a80e7be2059d408a107 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -2753,8 +2753,7 @@ void FrameView::paintContents(GraphicsContext* p, const IntRect& rect) |
RenderObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*rootLayer->renderer()); |
#endif |
- RenderObject* enclosingLayerRenderer = renderer ? renderer->enclosingLayer()->renderer() : 0; |
- rootLayer->paint(p, rect, m_paintBehavior, enclosingLayerRenderer); |
+ rootLayer->paint(p, rect, m_paintBehavior, renderer); |
if (rootLayer->containsDirtyOverlayScrollbars()) |
rootLayer->paintOverlayScrollbars(p, rect, m_paintBehavior, renderer); |