Bug 111444

Summary: [BlackBerry] FatFinger pairs the wrong element with fatfinger rect part
Product: WebKit Reporter: Tiancheng Jiang <tijiang>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, mifenton, rwlbuis, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Tiancheng Jiang 2013-03-05 08:53:11 PST
When we do the fatfinger and try to findIntersectingRegions, we use fatfinger rect subtract element area, which end up we pair the wrong fatfinger rect part, which is outside the chosen element area, with the chosen element. This result adjustedposition is outside of the chosen element.
Comment 1 Tiancheng Jiang 2013-03-05 08:58:40 PST
Created attachment 191505 [details]
Patch
Comment 2 Rob Buis 2013-03-05 09:13:58 PST
Comment on attachment 191505 [details]
Patch

Ok.
Comment 3 Antonio Gomes 2013-03-05 09:53:09 PST
Comment on attachment 191505 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=191505&action=review

> Source/WebKit/blackberry/WebKitSupport/FatFingers.cpp:382
> -            remainingFingerRegion = subtractRegions(remainingFingerRegion, layerRegion);
> +            remainingFingerRegion = intersectRegions(remainingFingerRegion, layerRegion);

that is not right. what does it fix?
Comment 4 WebKit Review Bot 2013-03-05 09:56:33 PST
Comment on attachment 191505 [details]
Patch

Clearing flags on attachment: 191505

Committed r144771: <http://trac.webkit.org/changeset/144771>
Comment 5 WebKit Review Bot 2013-03-05 09:56:36 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Tiancheng Jiang 2013-03-05 10:28:48 PST
If we use remainingFingerRegion subtract layerRegion, which will give us a region outside of layerRegion. But when we do checkFingerIntersection, we pair this region with the layer element. This end up a mismatch pair.
We should pair the intersected part with the layerRegion element.

(In reply to comment #3)
> (From update of attachment 191505 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=191505&action=review
> 
> > Source/WebKit/blackberry/WebKitSupport/FatFingers.cpp:382
> > -            remainingFingerRegion = subtractRegions(remainingFingerRegion, layerRegion);
> > +            remainingFingerRegion = intersectRegions(remainingFingerRegion, layerRegion);
> 
> that is not right. what does it fix?