OSDN Git Service

tweak select text
authorCary Clark <cary@android.com>
Mon, 26 Oct 2009 19:47:34 +0000 (15:47 -0400)
committerCary Clark <cary@android.com>
Tue, 27 Oct 2009 14:50:03 +0000 (10:50 -0400)
commit21088f4092362b3eac4b6ad7d7050aabb833dfcf
treecf2fac55a19fb8f104de62ace8a69ef1489e0d16
parentd7a32d06b4a2872680edc40f01ecce12e3b61b4a
tweak select text

webkit changed the behavior of hitTestResultAtPoint; it used
to return the innermost node hit, but does so no longer.
Work around this by searching the returned node for a text
node.

Start the text detection one pixel lower. This fixes picking up
the first line of a link on m.msn.com.

Simplify the selection drawing. Share code between the arrow and
the i-beam. Center the i-beam on the arrow. Use relative path
construction to simplify the i-beam.

Add debugging.

Requires a companion change in frameworks/base

partially fixes http://b/issue?id=1667690
WebKit/android/jni/WebViewCore.cpp
WebKit/android/nav/WebView.cpp