[EMAIL PROTECTED] wrote: > nsViewManager::DisableRefresh(void) > nsViewManager::EnableRefresh(PRUint32 aUpdateFlags) > > Should I call these before my for() loop of adding DIV tags to the dom > and > call EnableRefresh() after the for() loop?
No. In fact, you should never call them, period. The code that recomputes layout will do its own view update batching when it does so. Basically, we can't expect JS on random sites to implement batching, etc, etc. Which means the core engine does so itself, as much as possible. So you should just be able to use the DOM and things should batch correctly. -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

