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

Unified Diff: Source/core/page/FrameView.cpp

Issue 23537039: paintingRoot of a renderobject should be the renderer of its enclosingLayer RenderLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Created 7 years, 3 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 | « ManualTests/drag-inline-block.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ManualTests/drag-inline-block.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698