summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedRoot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/nav/CachedRoot.cpp')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index 7f4f06f..7bedd4f 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -1674,16 +1674,12 @@ SkPicture* CachedRoot::pictureAt(int* xPtr, int* yPtr, int* id) const
{
#if USE(ACCELERATED_COMPOSITING)
if (mRootLayer) {
- const LayerAndroid* layer = mRootLayer->find(*xPtr, *yPtr, mPicture);
+ const LayerAndroid* layer = mRootLayer->find(xPtr, yPtr, mPicture);
if (layer) {
SkPicture* picture = layer->picture();
DBG_NAV_LOGD("layer %d picture=%p (%d,%d)", layer->uniqueId(),
picture, picture ? picture->width() : 0,
picture ? picture->height() : 0);
- SkRect localBounds;
- layer->bounds(&localBounds);
- *xPtr -= localBounds.fLeft;
- *yPtr -= localBounds.fTop;
if (picture) {
if (id)
*id = layer->uniqueId();