On Tuesday 2008-04-15 11:39 -0700, [EMAIL PROTECTED] wrote:
> On Apr 15, 9:43 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> > > Can you please tell me for the following case ( text and anchor under
> > > a Paragraph): how does nsLineLayout determine if the anchor/text
> > > should start the next line?
> >
> > I don't know the details offhand.  I'd have to go read through the code, 
> > just
> > like you...

> Thank you. Can you please help me with more general questions:
> If I have a <p> and its children are some text and some anchor.
> 
> Does that mean firefox will create 1 nsBlockFrame for the paragraph
> and 1 nsTextFrame for each text and anchor?
> 
> And if yes, can I find out how many children a nsBlockFrame has?

You could try using the layoutdebug extension:  build with
ac_add_options --enable-extensions=default,layout-debug
in your mozconfig or --enable-extensions=default,layout-debug as an
argument to configure, and then run ./firefox -layoutdebug, and use
the Dump -> Frames menu item to see a dump of the frame tree.

You could also trigger the frame dumping code other ways by adding
calls to it in other places in the source tree.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to