Bug 134267

Summary: iOS WebKit2: block selection tends to prefer block to single words even when the page is zoomed.
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Severity: Normal CC: bunhere, cdumez, commit-queue, gyuyoung.kim, sergio
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Description Flags
Patch benjamin: review+

Description Enrica Casucci 2014-06-24 13:21:42 PDT
This is easily reproduced on pages like reddit.com, browsing through the comments, zooming the page and trying to select a word.

Comment 1 Enrica Casucci 2014-06-24 13:27:44 PDT
Created attachment 233734 [details]
Comment 2 Benjamin Poulain 2014-06-24 13:33:11 PDT
Comment on attachment 233734 [details]

The change makes sense. I would create a second rect (a FloatRect) especially for that purpose. Something like:
    FloatRect boundingRectInScrollViewCoordinates(boundingRect);

To make it explicit which that rect is not in document coordinates.
Comment 3 Enrica Casucci 2014-06-24 13:45:33 PDT
Committed revision 170388.