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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2605543002: Replace adjustment of previous visual rects on scroll with normal paint invalidation (Closed)
Patch Set: Remove unused parameters Created 4 years 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: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index af28b1f5c0df33c5d3c03120be9ae4823c408484..02acdf83b4ad1f058f8df66434a0cd8dd5dce209 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -372,7 +372,6 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
return;
showOverlayScrollbars();
- ScrollOffset scrollDelta = getScrollOffset() - newOffset;
m_scrollOffset = newOffset;
LocalFrame* frame = box().frame();
@@ -393,7 +392,7 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
if (!frameView->isInPerformLayout()) {
// If we're in the middle of layout, we'll just update layers once layout
// has finished.
- layer()->updateLayerPositionsAfterOverflowScroll(scrollDelta);
+ layer()->updateLayerPositionsAfterOverflowScroll();
// Update regions, scrolling may change the clip of a particular region.
frameView->updateDocumentAnnotatedRegions();
frameView->setNeedsUpdateWidgetGeometries();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698