bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.
To further our efforts to get rid of appCore, we'll need to have access to the textZoom property of nsIMarkupDocumentViewer from both Editor and Browser. This can be gotten at through the documentViewer property of a DocShell, except right now it's not scriptable. See here the bug with a request to make it scriptable. Not sure if XP Apps is the right component, please re-assign if not. I'll see if I can do this (more hands-on learning!) but if anyone else wants to do this, please do :-)
*cough* nsIContentViewer *cough* contentViewer property *cough*
Summary: make nsIDocumentViewer scriptable → make nsIContentViewer scriptable
Oooh, and let's not forget about mail/news. HTML e-mails will also benefit from this zoom fu (bug 10893) :-)
According to bryner, the only thing for nsIContentViewer which can't be scriptable is: NS_IMETHOD Init(nsIWidget* aParentWidget, nsIDeviceContext* aDeviceContext, const nsRect& aBounds)=0; because of the nsIDeviceContext. Currently I'll only need to get the contentViewer from a docShell and most of the time just QI it to another interface, so that shouldn't be a problem I think.
Taking this bug... It works here! I'll attach a patch tomorrow.
Assignee: don → disttsc
Done! See bug 46200 for the patch to this and its little friends.
Status: NEW → ASSIGNED
And checked in (a while back)
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.