[webkit-dev] Help finding element at point
tonikitoo (Antonio Gomes)
tonikitoo at gmail.com
Wed Aug 12 04:14:56 PDT 2009
HitTest can also help here, probably. APIs for it are port dependent, iirc.
On Wed, Aug 12, 2009 at 3:41 AM, Eric Seidel<eric at webkit.org> wrote:
> webkit-help is the list you want, not webkit-dev.
> But to answer your question, see Document::elementAtPoint(x, y).
> On Wed, Aug 12, 2009 at 12:32 AM, Chris Mumford <cmumford at cmumford.com>
>> I'm trying to figure out the DOM element at a certain (x,y) point. To do
>> this I'm using Document::prepareMouseEvent() which seems to return what I
>> expect - most of the time. Specifically <input type="text"> nodes are
>> returned as <div>#text</div>. It appears to me as though I'm getting the
>> internal representation of the text input element. How can I get the "real"
>> element at a given location?
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev