Re: Setting default stylesheets
Ben Hutchings wrote: Something I don't understand is that I apparently have to do this for each page. How do Seamonkey and Firefox set stylesheets to be applied to all pages There are hardcoded URIs to the sheets in the C++. and can I do the same? Yes, if you change the C++ involved... In 1.8-based builds, the stylesheet service does that work for you, but with 1.7, you have to do it for each page. :( -Boris ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding
Re: Setting default stylesheets
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> It's 1.7.8. > > OK. Then there is no really clean way to do it... You can try creating a > CSSLoader (nsICSSLoader.h) and using it to load sheets, then using > SetAgentStyleSheets() on the presshell, I guess. That works for me, though it took me a while to work out that some of my rules were being overridden by the default "preferences". I'm now also calling EnablePrefStyleRules(false) to avoid this. Something I don't understand is that I apparently have to do this for each page. How do Seamonkey and Firefox set stylesheets to be applied to all pages, and can I do the same? -- Ben Hutchings friends: People who know you well, but like you anyway. ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding
Re: Setting default stylesheets
Ben Hutchings wrote: It's 1.7.8. OK. Then there is no really clean way to do it... You can try creating a CSSLoader (nsICSSLoader.h) and using it to load sheets, then using SetAgentStyleSheets() on the presshell, I guess. -Boris ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding
Re: Setting default stylesheets
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Debian's mozilla-dev >> package doesn't include the IDL file. Could this be considered a >> packaging bug? > > Hmm... Which version are they packaging? This interface did not exist in the > 1.7 version of Gecko. > > If you're working against 1.7, then things are harder. You may have to go > back > to that nsIPresShell business. It's 1.7.8. Ben. -- Ben Hutchings friends: People who know you well, but like you anyway. ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding