diff options
author | Cary Clark <cary@android.com> | 2010-12-16 13:21:01 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-12-16 14:05:29 -0500 |
commit | 45caa82c86fc13574e7a4c476b92c593e999ebac (patch) | |
tree | 89d862ea4292157bf05ec4dae3281317627be839 /WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp | |
parent | 0bdd7f2d73cad03535071e5de0ba3d2f5feb1b00 (diff) | |
download | external_webkit-45caa82c86fc13574e7a4c476b92c593e999ebac.zip external_webkit-45caa82c86fc13574e7a4c476b92c593e999ebac.tar.gz external_webkit-45caa82c86fc13574e7a4c476b92c593e999ebac.tar.bz2 |
improve text selection in scrollable divs
Detect which layer is hit by looking for scrollable layers.
In this case it isn't necessary to see what is drawn or where,
because the layer has already been prescreened by the parent clip.
Adjust the x/y hit by the layer's position. This corrects the
position when the layer scrolls.
Fix CachedLayer's debug output to be in sync with LayerAndroid.h
SelectText edge cases are corrected when there is not text to hit.
To find the closest character, first look at the edge of the
text line. If the hit is inside the line of text, measure from the
center of the character. This helps when textlines overlap.
bug:3275625
bug:3191699
Change-Id: I924cc0432f6dace32e0a7444fe69ef15dca2e77f
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
0 files changed, 0 insertions, 0 deletions