Christian Biesinger wrote:
Hi,
I've got some questions about frames and views.

Firstly... It seems that the main way frames get views is via nsHTMLContainerFrame::CreateViewForFrame, is that correct? And that's usually called right after the frame is created, right? (why is that method on nsHTMLContainerFrame? wouldn't a more generic class be better?)

All correct, as far as I know.  (including the parenthetical comments)


When is reflow called in relation to that? At some unspecified time later (off an event)? If a frame's Init method posts an event, would that usually fire before or after Reflow has happened?


I'm not really familiar with that, so I can't give a good answer.

Do frames have an easy way of knowing whether they were already reflown at least once?

NS_FRAME_FIRST_REFLOW flag.


Do views start out hidden or shown?

There's a flag on nsIViewManager::CreateView which defaults to visible.


thanks,
-biesi

Hope that was helpful.
-Eli Friedman
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to