diff options
author | Cary Clark <cary@android.com> | 2010-08-26 17:47:21 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-08-26 17:56:24 -0400 |
commit | 90fa57cd8b940ab1b46a85da92d950392a77e9da (patch) | |
tree | bd3c19236cca729146906b1d2b372237c33d0ecf | |
parent | 21ed5a4502b3ce76875505aa220f187d165f47b1 (diff) | |
download | external_webkit-90fa57cd8b940ab1b46a85da92d950392a77e9da.zip external_webkit-90fa57cd8b940ab1b46a85da92d950392a77e9da.tar.gz external_webkit-90fa57cd8b940ab1b46a85da92d950392a77e9da.tar.bz2 |
DO NOT MERGE make the text selection easier to hit
Change-Id: I47b7aa04ebc2a8f0bf2c6b4399ef65e5f4c58d4e
http://b/2626451
-rw-r--r-- | WebKit/android/nav/SelectText.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebKit/android/nav/SelectText.cpp b/WebKit/android/nav/SelectText.cpp index fc93972..e303d2b 100644 --- a/WebKit/android/nav/SelectText.cpp +++ b/WebKit/android/nav/SelectText.cpp @@ -1426,7 +1426,10 @@ bool SelectText::hitSelection(int x, int y) const int bottom = m_selEnd.fBottom + CONTROL_HEIGHT / 2; if (hitCorner(right, bottom, x, y)) return true; - return m_selRegion.contains(x, y); + SkIRect test; + test.set(x - CONTROL_WIDTH, y - CONTROL_HEIGHT, x + CONTROL_WIDTH, + y + CONTROL_HEIGHT); + return m_selRegion.intersects(test); } void SelectText::moveSelection(const SkPicture* picture, int x, int y) |