[CSS] loading user-agent stylesheets one at a time from PlatformImpl is inefficient

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u40
    • Affects Version/s: 8u20
    • Component/s: javafx

      PlatformImpl calls StyleManager.addUserAgentStylesheet for each stylesheet the platform needs. Each time addUserAgentStylesheet is called, CSS is totally re-evaluated, which adds to startup overhead. For an embedded linux device with touch-screen, css could be re-evaluated six times!

      I propose to add a setUserAgentStylesheets(String... urls) to StyleManager that will process the stylesheets in bulk and re-evaluate CSS only once at the end.

            Assignee:
            David Grieve
            Reporter:
            David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: