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>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, cdumez, commit-queue, gyuyoung.kim, sergio
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
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.

<rdar://problem/17138059>
Comment 1 Enrica Casucci 2014-06-24 13:27:44 PDT
Created attachment 233734 [details]
Patch
Comment 2 Benjamin Poulain 2014-06-24 13:33:11 PDT
Comment on attachment 233734 [details]
Patch

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

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.