CSS: StyleManager does not hold strong reference to StyleHelpers

Details

Description

StyleHelper is a Reference in Node since StyleManager might invalidate the helper (if, for example, scene stylesheets change). But no where is there a strong reference to the StyleHelper, so they keep getting recreated even though there is no need to recreate them.

// We need to create a new StyleHelper, add it to the cache,
@@ -1197,11 +1191,11 @@
final StyleHelper helper =
StyleHelper.create(styles, pseudoclassStateMask,
++(container.helperCount));
- final Reference helperRef = new WeakReference(helper);