On Sunday 2006-06-04 23:30 -0500, Boris Zbarsky wrote:
> I tracked this down to the fact that nsIFrame::InlinePrefWidthData::Break 
> subtracts off trailingWhitespace from currentLine, while 
> nsIFrame::InlineMinWidthData::Break does not.  Should the latter be 
> subtracting it off as well?  Or is my assertion that GetPrefWidth() >= 
> GetMinWidth() not something I can assert?

I think the idea was that breakable whitespace would never be added to
InlineMinWidthData in the first place; it doesn't have a
trailingWhitespace member.  Seems not to be what I implemented, though.
(It was a while ago; I don't really remember.)

I'll have a look more closely tomorrow if you haven't already.  Maybe
the best approach is to add the member to make things more symmetric
instead of doing what I originally planned, although maybe the original
plan is easy too.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Attachment: pgpl3xIxVzAkq.pgp
Description: PGP signature

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

Reply via email to