[EMAIL PROTECTED] wrote: > I notice there is a method called 'nsContentSink::StartLayout()', is > that method kick off the incremental reflow?
It's the method that kicks off construction of the rendering model. > If that is the case, can i call that only after read the end of the > HTML document (get the '</html>' tag)? Yes, but: 1) Some documents don't have an end 2) Doing that will break some websites. > My thinking is if I wait till the end of the document and just do a > reflow once (i.e. disable incremental relfow), i can speed up the > overall load time of the document (Yes, the initial display time of a > page will take longer) . While true, the user-perceived load time might be higher on most pages, precisely for the reason that you describe. And as I said, some pages will render incorrectly. -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

