summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/LayerAndroid.cpp
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-11-12 15:53:20 -0500
committerPatrick Scott <phanna@android.com>2010-11-12 16:34:27 -0500
commitd14ead3da91cffe84ab520406be62b9d988a3212 (patch)
tree8b1d74a4a12ad7b4082f66d27bf1da9e5e2e559a /WebCore/platform/graphics/android/LayerAndroid.cpp
parent3a3b28707d2d6a06afe9f3137e9bedc07246d600 (diff)
downloadexternal_webkit-d14ead3da91cffe84ab520406be62b9d988a3212.zip
external_webkit-d14ead3da91cffe84ab520406be62b9d988a3212.tar.gz
external_webkit-d14ead3da91cffe84ab520406be62b9d988a3212.tar.bz2
Use LayerAndroid::find with the original x and y.
If the picture is not provided, use the findInner case to find the layer at the given position. Change-Id: I811c1c4d631086832a3a32038834117a1c4e9601
Diffstat (limited to 'WebCore/platform/graphics/android/LayerAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/LayerAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp
index f88401c..e37b083 100644
--- a/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -356,7 +356,7 @@ const LayerAndroid* LayerAndroid::find(int x, int y, SkPicture* root) const
LayerAndroidFindState state(x, y);
SkRect rootBounds;
rootBounds.setEmpty();
- if (state.drew(root, rootBounds) && state.drewText())
+ if (root && state.drew(root, rootBounds) && state.drewText())
return 0; // use the root picture only if it contains the text
findInner(state);
return state.best();