mark_is_new, 02-02-2009 15:22:
> Disclaimer: I have not gone through the source code myself.  I'm
> relatively new to JavaScript and curious about some of Firebug's
> capabilities.
>
> What technique is Firebug using to calculate the cascaded,
> programmatically-derivded CSS values for a particular element?  We are
> writing a function to traverse upward in the DOM tree until we find
> the particular CSS attribute we're looking for (and we have defaults
> set on the html element).
>
> It seems that Firebug is doing something much more efficient than this
> to achieve its performance; we can see the wait time for some of the
> calculations on our page depending on how many levels we're moving
> up.  We recursively call the node.parentNode until we find the
> attribute we're looking for, and return it to the calling function.
>
> Is there a direct method of getting these values?

Should you look at this message and the next one:
http://groups.google.com/group/firebug/browse_thread/thread/411e64bd18d787d8/255941a38495b355?#255941a38495b355

Basically, use objects and hashtables to keep the values and transverse 
the whole DOM once.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to