OSDN Git Service

improve text selection
authorCary Clark <cary@android.com>
Tue, 14 Dec 2010 13:04:18 +0000 (08:04 -0500)
committerCary Clark <cary@android.com>
Tue, 14 Dec 2010 21:31:07 +0000 (16:31 -0500)
commitd2966aa787e0dcc4d26a10b6f0dc9f3a2f51abe4
treee99ff47e802fe90ba5c617dce34221807598d760
parent0d7cec732e3f00f89749d4946fd22168d8d4111c
improve text selection

LayerAndroid.*
Adjust the hit-test (x,y) by the layer position.
Keep track of the adjusted (x,y) and store the best
to be returned when the best layer is found.

CachedRoot.cpp
Remove code that adjusted (x,y) by layer bounds.

SelectText.*
Detect columns of text and prefer new characters in the same
column as the existing selection.

Don't extend the selection until the tap point moves past
the word anchors.

There's more work to do on selecting text in layers.

bug:3275625
bug:3271730
bug:3191699
Change-Id: Ib3c2b35e5eebe30c6032f484cf76d388e94293e0
WebCore/platform/graphics/android/LayerAndroid.cpp
WebCore/platform/graphics/android/LayerAndroid.h
WebKit/android/nav/CachedRoot.cpp
WebKit/android/nav/SelectText.cpp
WebKit/android/nav/SelectText.h