just as a follow-up, we discussed this a bit in IRC and Garrick found
he could access the CSS tab's functions with:
FirebugContext.getPanel('css').getInheritedRules(...)
On Mar 13, 2:16 pm, Garrick <[email protected]> wrote:
> I'm having difficulty extending firebug.
>
> The extension should find out how much of a stylesheet's rules is
> being used in the page. A 'CSS-coverage analysis' kind of thing (as
> robcee in #firebug put it).
>
> I've explored the js files and figured what I'm trying to do is
> related to html.js and css.js.
>
> I am able to get an array of all the elements in the page by doing:
> context.window.document.getElementsByTagName('*');
>
> I think the methods that would be able to give me the rules for each
> element are found in css.js CSSElementPanel.getInheritedRules and
> CSSElementPanel.getElementRules, like how
> CSSElementPanel.updateCascadeView is using them. But how do I access
> those methods?
>
> I'd rather stick to the DRY and not copy/paste those methods over to
> my extension's js file. Am I on the right track?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---