[Webkit-unassigned] [Bug 40197] Enhance the hit testing to take a rectangle instead of a point

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 25 13:15:23 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40197


Antonio Gomes <tonikitoo at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #58669|0                           |1
        is obsolete|                            |
  Attachment #59789|                            |review?
               Flag|                            |




--- Comment #32 from Antonio Gomes <tonikitoo at webkit.org>  2010-06-25 13:15:22 PST ---
Created an attachment (id=59789)
 --> (https://bugs.webkit.org/attachment.cgi?id=59789)
patch v1 - feature + tests

This new patch (named 'v1') comprises previous work done by Grace (see obsolete patches), as well as a testing infrastructure for the rect-based hit test feature.

As ways to expose the functionality, the patch:

- adds a nodesFromRect method to the Document class, exposing the funcionality to the DOM. Method returns a NodeList with all nodes that intersect the given hit-tested area.
- extends hitTestResultAtPoint method of the EventHandler with an extra 'padding' parameter, defaulting to IntSize(0,0). The rect-based hit test is performed when a non-zero padding is passed in.

If padding is IntSize(0,0) or omitted, point based HitTest is performed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list