Rupesh Mehta wrote:
I'm curious to know if Gecko can estimate visual layout information of each DOM node of a given Web-page, without rendering that page in the browser ?
Estimate? What do you mean? Certain things can be computed without rendering the page (i.e. putting it into a display:none iframe). Some things like sizes and percentage lengths require actually completely rendering the page to compute. In general, though, there's no way to estimate what one piece will look like without loading the whole page.
If so, please provide the details/pointers. I guess currently we need to render a Web-page through browser to get the visual layout.
Currently, you do need to have a browser window to load anything, although it doesn't have to be visible. Some data only gets computed when a page gets rendered on the screen (although you could probably trick it into computing the rendering without actually showing anything on the screen by clipping it with a parent widget.)
Eventually, there might be a cleaner way to do this, but that's the current situation.
-Eli _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

