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

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

Issue 25110005: Composited fixed-pos element should still cause repaints if it paintsIntoCompositedAncestor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/page/FrameView.cpp
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp
index 343bbb47f3cb11f6d67582be68e879639891c76f..7a898dfcce0d99adab4a31de5b2092eab53556c1 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -1354,13 +1354,16 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect
if (!renderer->style()->hasViewportConstrainedPosition())
continue;
- if (renderer->isComposited())
- continue;
-
// Fixed items should always have layers.
ASSERT(renderer->hasLayer());
RenderLayer* layer = toRenderBoxModelObject(renderer)->layer();
+ // Composited layers may still actually paint into their ancestor.
+ // If that happens, the viewport constrained object needs to be
+ // repainted on scroll.
+ if (layer->isComposited() && !layer->backing()->paintsIntoCompositedAncestor())
+ continue;
+
if (layer->viewportConstrainedNotCompositedReason() == RenderLayer::NotCompositedForBoundsOutOfView
|| layer->viewportConstrainedNotCompositedReason() == RenderLayer::NotCompositedForNoVisibleContent) {
// Don't invalidate for invisible fixed layers.

Powered by Google App Engine
This is Rietveld 408576698