diff options
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r-- | WebKit/android/nav/WebView.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 4b24073..fdca064 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -1111,11 +1111,10 @@ bool startSelection(int x, int y) bool wordSelection(int x, int y) { - if (!startSelection(x, y)) + const CachedRoot* root = getFrameCache(DontAllowNewer); + if (!root) return false; - extendSelection(x, y); - m_selectText.setDrawPointer(false); - return m_selectText.wordSelection(); + return m_selectText.wordSelection(root, getVisibleRect(), x, y); } bool extendSelection(int x, int y) |