[webkit-help] Howto Calculate x, y points for GraphicsContext::drawFocusRing()
vivekonline86 at gmail.com
Fri Feb 12 01:06:35 PST 2010
On Thu, Feb 11, 2010 at 11:19 PM, Ariya Hidayat <ariya.hidayat at gmail.com>wrote:
> > Actually, I want to increase active area of links, in such a way that
> > if I clicked below the link,
> > (i.e. not exactly over the link) the nearer link should get selected and
> > gets loaded. Right now, I have to click exactly over the link.
> I guess this is the reason you asked the endless hit test questions in
> the separate thread?
Yes, you are right.. :-)
Actually I was going step by step and trying to understand the things. But
fell into a very confusing state that I could not even think on it. And
finally I posted
my objective. I would have to do this very early.. I wasted too much time.
> If only you would have told us your objective
> There are tons of ways to do that. Two I can think of:
> (1) Find all links in the page and calculate the distance to your
> click position. Pick the nearest one (or whatever algorithm you use).
> How to find all the links on a webpage ?
> (2) "Probe" in the vicinity of your click position for any presence of
> others links. An example I show in
> does the same, albeit for any type of elements instead of only links.
> Thanks for this but could you please point out me to the exact location
where you are
achieving this in snapping code ? And the snapping code seems to be use Qt
is it possible to implement my objective inside webkit code by modifying few
hitTest or some other similar function ?
> Ariya Hidayat
> webkit-help mailing list
> webkit-help at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help