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

Unified Diff: Source/web/ChromeClientImpl.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
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 7aae604a04a6ed9d7425fe1e69c8d118e122a7c6..85801d96a4acf0a1192a1c9bea5168631cea092f 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -493,19 +493,10 @@ void ChromeClientImpl::scheduleAnimation()
m_webView->scheduleAnimation();
}
-void ChromeClientImpl::scroll(
- const IntSize& scrollDelta, const IntRect& scrollRect,
- const IntRect& clipRect)
-{
- if (!m_webView->isAcceleratedCompositingActive()) {
- if (m_webView->client()) {
- int dx = scrollDelta.width();
- int dy = scrollDelta.height();
- m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect, clipRect));
- }
- } else {
- m_webView->scrollRootLayer();
- }
+void ChromeClientImpl::scroll()
+{
+ ASSERT(m_webView->isAcceleratedCompositingActive());
+ m_webView->scrollRootLayer();
}
IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const

Powered by Google App Engine
This is Rietveld 408576698