On 12/10/09 8:22 AM, martin wrote:
Thank you for your answer. I have to tell that I'm not familiar with
things like JSContext, nsIJSContextStack yet. I tried to push current
JSContext on the stack, but no success. Could you please provide some
advice more in detail please?

You could try looking through nsContentUtils.h/cpp for places that push JSContexts and do likewise...

Sorry, I'm not going to write the code right now.

What I'm trying to do is to retrieve all stylesheets, change it and
set this new value. I just want to edit the document's CSS. If there's
some better way to achieve this, please let me know. Probably I didn't
choose the right way.

I don't believe there's a good way to do this in C++. Certainly not if you plan to modify the rules.

-Boris
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to