On Friday 2006-04-28 15:24 -0700, L. David Baron wrote: > On Friday 2006-04-28 12:31 +1200, Robert O'Callahan wrote: > > I think a better way would be to simply allow the text frame to finish > > reflow with status 'complete', but record in nsLineLayout (or elsewhere) > > that there's a potential line break before the last word. When line > > layout eventually runs out of available space, we notice that we had a > > potential line break earlier, and reflow the line again, forcing the > > text frame to break at the last saved line break position. I think this > > Why do we need to reflow the line again? Why can't we just break the > frames at the earlier position and *not* reflow the line again -- just > do vertical/horizontal alignment of the line.
That said, I think we could do much better still if we abandoned the idea that reflow of inline frames had to be done using a member function on the frames. Then we could do splitting and just keep going. Much of the work (vertical alignment, horizontal alignment and justification) already happens outside of reflow anyway. -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla Corporation
pgpHhP70yQh1E.pgp
Description: PGP signature
_______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

