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

Unified Diff: Source/platform/scroll/ScrollView.cpp

Issue 480623002: Remove unused second parameter to scrollContentsFastPath (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/platform/scroll/ScrollView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollView.cpp
diff --git a/Source/platform/scroll/ScrollView.cpp b/Source/platform/scroll/ScrollView.cpp
index 9dc921add079e4779ccfd1076cce692a013cd651..9dc762c1aa540cc5745b7c6cbb6adc1377e7eff8 100644
--- a/Source/platform/scroll/ScrollView.cpp
+++ b/Source/platform/scroll/ScrollView.cpp
@@ -536,12 +536,9 @@ void ScrollView::scrollContents(const IntSize& scrollDelta)
if (!window)
return;
- // Since scrolling is double buffered, we will be blitting the scroll view's intersection
- // with the clip rect every time to keep it smooth.
IntRect clipRect = windowClipRect();
- IntRect scrollViewRect = rectToCopyOnScroll();
IntRect updateRect = clipRect;
- updateRect.intersect(scrollViewRect);
+ updateRect.intersect(rectToCopyOnScroll());
if (m_drawPanScrollIcon) {
// FIXME: the pan icon is broken when accelerated compositing is on, since it will draw under the compositing layers.
@@ -553,7 +550,7 @@ void ScrollView::scrollContents(const IntSize& scrollDelta)
window->invalidateContentsAndRootView(panScrollIconDirtyRect);
}
- if (!scrollContentsFastPath(-scrollDelta, scrollViewRect))
+ if (!scrollContentsFastPath(-scrollDelta))
scrollContentsSlowPath(updateRect);
// Invalidate the overhang areas if they are visible.
@@ -563,7 +560,7 @@ void ScrollView::scrollContents(const IntSize& scrollDelta)
frameRectsChanged();
}
-bool ScrollView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll)
+bool ScrollView::scrollContentsFastPath(const IntSize& scrollDelta)
{
hostWindow()->scroll();
return true;
« no previous file with comments | « Source/platform/scroll/ScrollView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698