Reviewers: jgw, bruce, Message: @Joel, Bruce,
Ok, here's the patch that all of this work has been leading up to. Style injection can now be deferred until just before we return to the browser's event loop. Description: This patch changes StyleInjector to use Scheduler.scheduleFinally() so that the recommended inject-on-init pattern will perform better by reducing the number of DOM mutations performed. It also deprecates the existing injectStylesheet() methods and replaces them with void inject() variants because we can't implement the StyleElement consistently across all browsers. Specicially, IE returns not-quite-DOM-nodes from createStylesheet(). Please review this at http://gwt-code-reviews.appspot.com/78816 Affected files: M user/src/com/google/gwt/dom/client/StyleInjector.java M user/src/com/google/gwt/resources/rg/CssResourceGenerator.java M user/test/com/google/gwt/dom/client/StyleInjectorTest.java --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
