[webkit-dev] NeedHelp_In_SpatialNavigation

Sanjeet Pratap Singh sanjeetpratapsingh at gmail.com
Mon Oct 24 06:15:51 PDT 2011


Hi,

Thanks for your answers.

I am looking for some way to reduce the whole DOM traversal.
Meanwhile, I am trying for multi-threading in Spatial Navigation.
So, in the same context, have you experienced any place in Sp. Navigation,
which needs multiple threads for a better response.


Thanks & Regards,
Sanjeet

On Wed, Oct 19, 2011 at 7:49 PM, Antonio Gomes <tonikitoo at gmail.com> wrote:

> Hi
>
> 1) When we use spatial navigation, to find the nearest node it traverse DOM
>> tree, is that node information can not be retrieved from render tree?
>>
>>
> As per my understanding render tree (after layout) will have the position
>> information for each node.
>>
>
> Code tranverses the DOM, yes, but it gets the position information from the
> associated node renderer. So it gets it from the RenderTree.
>
> So is there any way we can get the nodes information of any particular
>> area.
>>
>
> Not sure if I understood you here. Could you  elaborate?
>
> 2) If from render tree we can get the nodes according to position then we
>> can skip the traversing of whole DOM tree.
>>
>
> If the RenderTree can tell us what elements in the DOM tree are 'focusable'
> (which I do not think it can), yes.
>
>
>>
>> 3) Is Spatial navigation is related to Hit testing?
>>
>
> Not at the moment.
>
>
> --
> --Antonio Gomes
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111024/c3af4d8c/attachment.html>


More information about the webkit-dev mailing list