If you want to know how mouse events are handled internally, the following function should be a good start point.
HitTestResult EventHandler::hitTestResultAtPoint(const IntPoint& point, bool allowShadowContent, bool ignoreClipping) You can set a breakpoint there, or search this function in the project. -Robin On Tue, Feb 2, 2010 at 11:30 AM, Vivek Satpute <[email protected]>wrote: > Hi Ariya, > > At first, thanks a lot for immediate reply. > > On Mon, Feb 1, 2010 at 10:56 AM, Ariya Hidayat <[email protected]>wrote: > >> > When we do single click on webpage, webkit checks whether click is >> > occurred on URL/link or not ? To check this it uses isOverLink() >> > function. Can anyone please explain me, does this function consider >> > (x,y) co-ordinates of click to take decision ? I tried to look in code >> > but did not get it properly. How does isOverLink() function work ? >> >> Do you mean this super-simple function? >> >> bool MouseEventWithHitTestResults::isOverLink() const >> { >> return m_hitTestResult.URLElement() && >> m_hitTestResult.URLElement()->isLink(); >> } >> >> What is exactly you don't understand about this function? >> >> I want to know the logic of isOverLink() that on which basis it returns > true or false. How it decides that > click is over link ? Does it use (x,y) co-ordinates of clicked area to > take decision ? > > Actually, I tried to dig up isOverLink() as follows: > > isOverLink() > ------------------------------------------------------------------------ > > | > | > |calls - > > | calls - > > m_hitTestResult.URLElement() > m_hitTestResult.URLElement()->isLink() > > | > | > |calls > - > | > m_innerURLElement.get() Then > above isLink() always returns TRUE > | > Then I could not find out function definition > of above get() function calls. > > I am not getting the logic behind this. If I am wrong then please correct > me.. > > Thanks in advance, > Vivek > > > Or is it some other function? >> >> >> >> >> -- >> Ariya Hidayat >> http://www.linkedin.com/in/ariyahidayat >> _______________________________________________ >> webkit-help mailing list >> [email protected] >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help >> > > > _______________________________________________ > webkit-help mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help > >
_______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
