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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect ) 486 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect )
487 { 487 {
488 invalidateContentsAndRootView(updateRect); 488 invalidateContentsAndRootView(updateRect);
489 } 489 }
490 490
491 void ChromeClientImpl::scheduleAnimation() 491 void ChromeClientImpl::scheduleAnimation()
492 { 492 {
493 m_webView->scheduleAnimation(); 493 m_webView->scheduleAnimation();
494 } 494 }
495 495
496 void ChromeClientImpl::scroll( 496 void ChromeClientImpl::scroll()
497 const IntSize& scrollDelta, const IntRect& scrollRect,
498 const IntRect& clipRect)
499 { 497 {
500 if (!m_webView->isAcceleratedCompositingActive()) { 498 ASSERT(m_webView->isAcceleratedCompositingActive());
501 if (m_webView->client()) { 499 m_webView->scrollRootLayer();
502 int dx = scrollDelta.width();
503 int dy = scrollDelta.height();
504 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect, clipRect));
505 }
506 } else {
507 m_webView->scrollRootLayer();
508 }
509 } 500 }
510 501
511 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const 502 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const
512 { 503 {
513 IntRect screenRect(rect); 504 IntRect screenRect(rect);
514 505
515 if (m_webView->client()) { 506 if (m_webView->client()) {
516 WebRect windowRect = m_webView->client()->windowRect(); 507 WebRect windowRect = m_webView->client()->windowRect();
517 screenRect.move(windowRect.x, windowRect.y); 508 screenRect.move(windowRect.x, windowRect.y);
518 } 509 }
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 if (m_webView->autofillClient()) 878 if (m_webView->autofillClient())
888 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put)); 879 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put));
889 } 880 }
890 881
891 bool ChromeClientImpl::usesGpuRasterization() 882 bool ChromeClientImpl::usesGpuRasterization()
892 { 883 {
893 return m_webView->layerTreeView()->usesGpuRasterization(); 884 return m_webView->layerTreeView()->usesGpuRasterization();
894 } 885 }
895 886
896 } // namespace blink 887 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698