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+

Enrica Casucci
Reported 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>
Attachments
Patch (2.04 KB, patch)
2014-06-24 13:27 PDT, Enrica Casucci
benjamin: review+
Enrica Casucci
Comment 1 2014-06-24 13:27:44 PDT
Benjamin Poulain
Comment 2 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.
Enrica Casucci
Comment 3 2014-06-24 13:45:33 PDT
Committed revision 170388.
Note You need to log in before you can comment on or make changes to this bug.