[webkit-dev] elementFromPoint in webkit

Ritesh Ranjan ritesh.rvce at gmail.com
Thu Jan 7 03:12:47 PST 2010


Hi Sam ,
        This is regarding
https://bugs.webkit.org/attachment.cgi?id=39511&action=edit
I am facing similar problem .
For me,AT TIMES elementFromPoint doesn't return the exact node .
Any clue ?

Thanks,
Ritesh








===================================================================
2009-09-12 Sam Weinig <sam at webkit.org>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=29219
 6 Document.elementFromPoint() should take page scroll into consideration
 7
 8 Test: fast/dom/elementFromPoint-relative-to-viewport.html
 9
 10 * dom/Document.cpp:
 11 (WebCore::Document::elementFromPoint):
 12 (WebCore::Document::caretRangeFromPoint):
 13
114 2009-09-12 Sam Weinig <sam at webkit.org>
215
316 Reviewed by Maciej Stachowiak.

WebCore/dom/Document.cpp

@@ KURL Document::baseURI() const
927927
928928 Element* Document::elementFromPoint(int x, int y) const
929929 {
 930 // FIXME: Share code between this and caretRangeFromPoint.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100107/9d82e7c0/attachment.html>


More information about the webkit-dev mailing list