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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 318183002: Fix repainting of composited RenderViews (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test Created 6 years, 6 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 | « LayoutTests/fast/repaint/resources/composited-iframe-scroll-repaint-iframe.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 42960837bc5481f1ba6ee1faf55608b045d45e00..498b518bef26b72a4f77f201c6a698c7f2486df4 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -470,11 +470,10 @@ void RenderView::repaintViewRectangle(const LayoutRect& ur) const
// We always just invalidate the root view, since we could be an iframe that is clipped out
// or even invisible.
Element* elt = document().ownerElement();
esprehn 2014/06/06 22:41:22 rename to owner?
- if (!elt) {
- if (hasLayer() && layer()->compositingState() == PaintsIntoOwnBacking)
- layer()->repainter().setBackingNeedsRepaintInRect(ur);
- else
- m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(ur));
+ if (layer()->compositingState() == PaintsIntoOwnBacking) {
+ layer()->repainter().setBackingNeedsRepaintInRect(ur);
+ } else if (!elt) {
+ m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(ur));
} else if (RenderBox* obj = elt->renderBox()) {
LayoutRect vr = viewRect();
LayoutRect r = intersection(ur, vr);
« no previous file with comments | « LayoutTests/fast/repaint/resources/composited-iframe-scroll-repaint-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698