Jonathan wrote:
> Yes, I am talking about Gecko 1.8.
> What I mean is if I have text like 'Hello world' in a html page. Gecko
> creates a nsTextFrame for it, will mContentLength be 11 (length of
> 'Hello world'?

That depends on the exact locations of the line breaks (since there is going to 
be one nsTextFrame per piece of line-broken content) and the exact time when 
you're looking at the member.  For example, right after the nsTextFrame is 
constructed it'll have an mContentLength of 0, iirc.  It will get updated to 
match the text the nsTextFrame actually maps the text during reflow.

-Boris

P.S.  Bidi reordering can also create multiple textframes all on one line, I 
think, but in your example that's a non-issue.  If your real text might not all 
be ltr, this is something to keep in mind.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to