Jon Smirl wrote:
I suspect the loop is caused by trying to measure the length
Don't suspect. Profile. If you can attach the file in question, I can probably profile it when I get back in about 3 weeks (if you haven't done it yourself by then).
in order to compute the width of the display.
Unlikely that this is the primary purpose. More likely, the "problem" is that plain text s just treated like HTML with a single <pre> block and the layout is done via CSS, and with CSS you MUST lay out the whole document at once (something I'm sure vi does not ever do).
Even if the width can't be lazy evaluated, it would be nice to do layout on a lower priority thread that would leave the UI responsive to requests to abort the layout.
Layout and the UI are on the same thread. -Boris _______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout
