Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096378

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u20
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: