I want to use the layout engine in two ways:

1. Save webpages as rendered images inside Mozilla out of the context menu (Save page as image).

2. Embedded in a wget like program (without a GUI) that can store rendered images from webpages (e.g. 'mozget -o mozilla.png -w 800 http://mozilla.org').


I figured out that the layout engine is not intended to be used without some kind of widget to draw on (correct?).


My problem is that I do not fully understand how the layout engine works.So I have some questions:


- Is there any documentation available that describes all the used interfaces (nsPresShell, nsDeviceContext, nsRenderingContext, nsContentViewer etc...) and their relationship?
The only thing I have found is this:
http://www.mozilla.org/docs/url_load.html
Which briefly describes how the whole stuff is done in mozilla.


- Is anyone already working on 1.?

- What changes are needed to get gecko loading and rendering a page offscreen?

- How do I tell the layout engine to draw the current webpage on my drawing surface, or can I get a copy?


It would be nice if one of the layout gurus can tell me how I can add the needed functionallity to the layout engine in a efficient way.


Regards

Jeremias Reith


Reply via email to