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

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

Issue 348193002: Remove some dead scrolling paths and unused params (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . 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 | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 5bdda224ea5879e5264746daf282904b6d0316da..4cd8e0f4acb12070d2670ac3d8dc5a9b574831b4 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1367,10 +1367,15 @@ void FrameView::scrollContentsIfNeeded()
updateFixedElementPaintInvalidationRectsAfterScroll();
}
-bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect)
+bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& unusedClipRect)
{
+ // FIXME: once we can switch plugins to a unified scrolling scheme, then
+ // we can do away with this parameter. Leaving as an empty rect for now to
+ // document the uselessness of the parameter to hostWindow.
+ static const IntRect dummyScrollRect;
+
if (!m_viewportConstrainedObjects || m_viewportConstrainedObjects->isEmpty()) {
- hostWindow()->scroll(scrollDelta, rectToScroll, clipRect);
+ hostWindow()->scroll(dummyScrollRect);
return true;
}
@@ -1430,7 +1435,7 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect
}
// 1) scroll
- hostWindow()->scroll(scrollDelta, rectToScroll, clipRect);
+ hostWindow()->scroll(dummyScrollRect);
// 2) update the area of fixed objects that has been invalidated
Vector<IntRect> subRectsToUpdate = regionToUpdate.rects();
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698