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

CSSEvent contains null rule for cached values

XMLWordPrintable

      I am in a case where 2 Rectangle with the same ID+same style class are added to the scene. A stylesheet file contains rules that impact the Rectangle instances.

      I do receive valid CSS events for the first instance, but the rule attached to the events associated to the second instance contains null rule.

      After discussion with David, it appears that the null values are related to the cached values. This problem can be workarounded by caching rules for StyleCacheKey instance.
      I am currently using a Map<StyleCacheKey, Map<String, List<Rule>>> to store valid rules, and reuse this map to retrieve rules for the received null rule events.

      It is enough for VT early access, but would be a great simplification if this problem was fixed.

      JF

            dgrieve David Grieve
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: