[webkit-dev] HowTO: Finding URL on click event ?
vivekonline86 at gmail.com
Fri Feb 5 02:20:47 PST 2010
I am new to webkit and have very less exposure to it.
If my webpage have many links/URLs and if I clicked on a URL then browser
loads that URL. Click event only gives (x,y) co-ordinates of clicked area. I
to explore that from (x, y) points how webkit find out the particular URL
we click on it.
So, I browsed the webkit code in a following way:
handleMousePressEvent(const PlatformMouseEvent& mouseEvent)
later on MouseEventWithHitTestResults::isOverLink() returns TRUE, if click
is did over URL.
But I am not getting how exactly webkit uses (x,y) point to find out that
click is over URL ?
Can anyone please help me out to understand this ?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev