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

Unified Diff: cc/LayerChromium.cpp

Issue 10907075: Roll cc snapshot up to 127605 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « cc/LayerChromium.h ('k') | webkit/compositor_bindings/WebLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/LayerChromium.cpp
diff --git a/cc/LayerChromium.cpp b/cc/LayerChromium.cpp
index 8dc15ad2d680ada6420db077336475acd57639dc..da4b0025013b38bdf224d9e7878ffa01b670b478 100644
--- a/cc/LayerChromium.cpp
+++ b/cc/LayerChromium.cpp
@@ -16,6 +16,8 @@
#include "TextStream.h"
#include <public/WebAnimationDelegate.h>
+#include <public/WebLayerScrollClient.h>
+#include <public/WebSize.h>
using namespace std;
using WebKit::WebTransformationMatrix;
@@ -65,7 +67,7 @@ LayerChromium::LayerChromium()
, m_screenSpaceTransformIsAnimating(false)
, m_contentsScale(1.0)
, m_layerAnimationDelegate(0)
- , m_layerScrollDelegate(0)
+ , m_layerScrollClient(0)
{
if (m_layerId < 0) {
s_nextLayerId = 1;
@@ -369,6 +371,8 @@ void LayerChromium::setScrollPosition(const IntPoint& scrollPosition)
if (m_scrollPosition == scrollPosition)
return;
m_scrollPosition = scrollPosition;
+ if (m_layerScrollClient)
+ m_layerScrollClient->didScroll();
setNeedsCommit();
}
@@ -413,13 +417,6 @@ void LayerChromium::setNonFastScrollableRegion(const Region& region)
setNeedsCommit();
}
-void LayerChromium::scrollBy(const IntSize& scrollDelta)
-{
- setScrollPosition(scrollPosition() + scrollDelta);
- if (m_layerScrollDelegate)
- m_layerScrollDelegate->didScroll(scrollDelta);
-}
-
void LayerChromium::setDrawCheckerboardForMissingTiles(bool checkerboard)
{
if (m_drawCheckerboardForMissingTiles == checkerboard)
« no previous file with comments | « cc/LayerChromium.h ('k') | webkit/compositor_bindings/WebLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698