On Jun 2, 10:37 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Jonathan wrote: > > My understanding is for each DOM element, mozilla will create a Frame > > for paint/display. > > 0 or more frames, more precisely. > > > My question is does the Frame hierarchy mirrors the DOM hierarchy in > > the source html? > > Somewhat, but not precisely. > > > For example, will the TextFrame be the child of the ContainerFrame > > (for the DIV tag) and same as the table. > > For your <div> the TextFrame will be a child of the <div>'s BlockFrame, yes. > > > TextFrame->ContainerFrame(table cell)->ContainerFrame(table row)- > >> ContainerFrame(table). > > here the TextFrame will be a child of a BlockFrame which is a child of a > TableCellFrame which is a child of the TableRowFrame, which is a child > of the TableRowGroupFrame, which is a child of the TableFrame, which is > a child of the TableOuterFrame. This follows the DOM closely, but has a > block inside the table cell and has the inner/outer table thing to > handle captions. > > -Boris
Boris, Thank you. But under what situation that mozilla creates 0 frame? The simplest page I can come up is <html>hello</html>. But it still creates 1 TextFrame, right? _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

