Actually, this rootNode comes from here (in bold):2. doc = rootNode.ownerDocument; ******************************************************************** <quoted> (from a firefox UI file) zoomer = Components.classes["@mozilla.org/zoomer;1"].createInstance(Components.interfaces.nsIZoomer); if (zoomer) { scale += 10; zoomer.zoom (window.content.document, scale); } else dump ("houston we have a problem"); //window.content.document is the rootnode ******************************************************************** <quoted> (zoom method - other file) zoom: function(node, factor) { createArrangedList (node); czZoomElements(node, factor/100); </quoted> ****************************************************************** ps: the zoomer is a xpcom components created by me. Its core is the "czZoomElements" method, that works fine, uses the same "node" element as well (e.g. node.ownerDocument.defaultView.getComputedStyle ...) The createArrangedList would create a list of relevant nodes for the zooming, used by the czZoomElements method. At this point, the czZoomElements walks recursively through the entire dom looking for these nodes (it works, but sometimes slowly, depends on how big the webpage is ) ... regards |
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Zhuchun Zhao
- Re: about zooming Boris Zbarsky
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Antônio Gomes
- Re: about zooming Boris Zbarsky
- Re: about zooming Stanimir Stamenkov
- Re: about zooming Antônio Gomes
