[EMAIL PROTECTED] wrote:
> <html>
> <p>We collect personal information on this site. To learn more about
> how we use your personal information, see our <a href="http://
> us.ard.com/">Privacy Policy</a>.</p>
> </html>
> 
> My browser window is small (400 pixels in width , so it breaks in 'how
> to use').

So there would be 4 textframes: 3 as children of the block, one as a child of 
the inline.

> But i only see 2 nsTextFrame get created, and 1 nsInlineFrame get
> created before and after reflow.

I don't know where you're looking, but I suggest doing the layout debugger 
thing 
dbaron suggested a few days ago...

> And as you said all values of mContentLength of both nsTextFrame are 0
> before reflow. But after reflow, the mContentLength of the first
> nsTextFrame is 35.

Seems reasonable...

> So my questions are:
> 1. I don't see a new nsTextFrame get created even when the text got
> broken into 2 lines.  Or I mis-understand what you meant?

How are you looking?

> 2. is there a better way to get the length of the text before reflow?

Depending on what you want, just ask the content node?

-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to