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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1287413002: Fix paint invalidation rect tracking within composited scrolling layers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/core/layout/LayoutObjectChildList.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index e959ac12c71119335e8658c459a34e4855746927..d4cdfde30cf69cf9791b58d9f0dd2a4f00619506 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -327,9 +327,7 @@ void DeprecatedPaintLayer::updateLayerPositionsAfterScrollRecursive(const Double
// the current bounds rect, as the LayoutObject may have moved since the last invalidation.
// FIXME(416535): Ideally, pending invalidations of scrolling content should be stored in
// the coordinate space of the scrolling content layer, so that they need no adjustment.
- LayoutRect invalidationRect = m_layoutObject->previousPaintInvalidationRect();
- invalidationRect.move(LayoutSize(scrollDelta));
- m_layoutObject->setPreviousPaintInvalidationRect(invalidationRect);
+ m_layoutObject->adjustPreviousPaintInvalidationForScrollIfNeeded(scrollDelta);
}
for (DeprecatedPaintLayer* child = firstChild(); child; child = child->nextSibling()) {
child->updateLayerPositionsAfterScrollRecursive(scrollDelta,
« no previous file with comments | « Source/core/layout/LayoutObjectChildList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698