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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • 8u20
    • javafx

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: