"Boris Zbarsky" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> Mathieu CARTOIXA wrote:
>
> > I was able to find the file nsCSSDeclaration.h in the
> > mozilla/content/html/style/src directory, but this appears not to be in
the
> > EXPORTS list of the Makefile (though it was in version 1.3.1).
>
> It was removed as part of the patch to bug 201681 (and replaced by
> nsCSSStruct.h, which is the only part that really needed to be exported,
> since nothing outside the layout module used nsCSSDeclaration).
>
> May I ask why your app needs nsCSSDeclaration? That's a private data
> structure of layout that really should not be used by anyone but layout...
Well, I need to change the visibility of some HTML elements at runtime.
In the case where the element has an inline CSS style rule, I change the
"visibility" property value to "visible" or "hidden". In order to do that I
get a reference to the nsICSSStyleRule interface, and I get a reference to
the nsCSSDeclaration with a call to
virtual nsCSSDeclaration * GetDeclaration (void) const =0;
which is still available in 1.4
But I will try to use the nsIDOMCSSStyleSheet, nsIDOMCSSStyleRule, and
nsIDOMCSSDeclaration interfaces as L. David Baron suggested.
Thanks for your help.
Mathieu CARTOIXA
_______________________________________________
mozilla-layout mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-layout