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