diff options
author | Patrick Scott <phanna@android.com> | 2011-01-26 13:50:11 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-26 13:50:11 -0800 |
commit | 4307fcfd3fd2f4670e174c266bbbcf50849a19ca (patch) | |
tree | 3cbcb61ee768403ad02cb67d091ff66a29a4bfca /WebKit/android/nav/WebView.cpp | |
parent | ed03e47015ce173c535ea9da8b61548db718e80e (diff) | |
parent | 1a8ec29fc0211a6b5c53a8cd9ce20be5e630b005 (diff) | |
download | external_webkit-4307fcfd3fd2f4670e174c266bbbcf50849a19ca.zip external_webkit-4307fcfd3fd2f4670e174c266bbbcf50849a19ca.tar.gz external_webkit-4307fcfd3fd2f4670e174c266bbbcf50849a19ca.tar.bz2 |
Merge "Fix hit testing inside layers." into honeycomb
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r-- | WebKit/android/nav/WebView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 683c2a3..28babc0 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -1022,8 +1022,8 @@ static const ScrollableLayerAndroid* findScrollableLayer( x -= bounds.fLeft; y -= bounds.fTop; int count = parent->countChildren(); - for (int i = 0; i < count; i++) { - const LayerAndroid* child = parent->getChild(i); + while (count--) { + const LayerAndroid* child = parent->getChild(count); const ScrollableLayerAndroid* result = findScrollableLayer(child, x, y, foundBounds); if (result) { |