In article <[EMAIL PROTECTED]>,
H�kan Waara <[EMAIL PROTECTED]> wrote:
> Hey. I just saw the brownbag video with Rick Gessner about layout,
> parser and all that so forgive me if I ask stupid questions. :)
>
> In the video, Rick states that the prescontext is the physical bounds,
> the screen width, the total area. However, when I look at
> nsIDeviceContext, it seems to be the exact same thing... and it's used
> in many more places.
>
> So my question is, what is the difference between them two? Is it that
> the nsIDeviceContext is somehow platform specific while the
> nsIPresContext is more "XP"? Anyhow, what is their relation?
The device context describes a 'device' (screen, printer etc) that
is being used as an output device for layout-rendered content.
The presentation context describes a specific presentation of
a given document.
Simon
--
Simon Fraser Entomologist
[EMAIL PROTECTED] http://people.netscape.com/sfraser/