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

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

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: