[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:32:33 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40197
--- Comment #33 from Antonio Gomes <tonikitoo at webkit.org> 2010-06-25 13:32:32 PST ---
(In reply to comment #32)
> Created an attachment (id=59789)
--> (https://bugs.webkit.org/attachment.cgi?id=59789) [details]
> patch v1 - feature + tests
Things yet to be done (probably in follow up work):
- Adds more test coverage for:
* transformed content case;
* <iframe> hit test case;
* etc.
- refine our DOM API for this. It is currently Document::nodesFromRect(int x, int y, int horizontalPadding, int verticalPaddin), taking vertical and horizontal padding values.
fwiw, firefox' is similarly padding-based, but takes padding for each of the four directions, and looks like:
nsIDOMNodeList nodesFromRect(in float aX, in float aY, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, ...);
On IRC, there was a brief discussion between Hyatt and I about what would be the ideal API. Maybe rect coordinates (i.e. x, y, width and height).
Again I think these could come in follow up bugs, as the feature gets more mature.
--
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