Zack Weinberg wrote:
> The most straightforward way to do that seems to be
> to add GetCSSParsingEnvironment methods to nsCSSStyleSheet and
> nsCSSRule - these could replace some of the existing code, at least for
> DOMCSSDeclarationImpl.  Does anyone have a better idea?

Either that, or putting it on nsContentUtils if it could be shared 
usefully seems reasonable.  The only thing to watch out for is slowing 
down setting of .style.something.

> I'm also not sure how to notify the world that the rule has changed.
> There are nsCSSStyleSheet methods for that, but they're internal and
> appear to be valid only for plain old style rules

I'm not entirely sure that we have a good notification system in place here.

Note that at this point you probably know as much about this code as 
anyone else does.  ;)

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to