RFR: 8375363: StyleHelper.resetToInitialValues() interrupts animated properties

Michael Strauß mstrauss at openjdk.org
Thu Jan 15 19:38:34 UTC 2026


On Thu, 15 Jan 2026 19:13:19 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> > you sometimes can get the `transition` property to be reset
> 
> Do you think that can cause some other problematic scenario?
> 
> With the fix, the behavior is as expected.

I don't think so: the other part of this fix is to elide unnecessary resets in the first place. So whenever a property is set to A in one style state, and to B in another style state, you won't see a transient "null" value; instead, you'll only see the A->B change if you observe the property. If anything, I think this _reduces_ the chance for problems arising from transient values that are neither A nor B.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2038#issuecomment-3756541410


More information about the openjfx-dev mailing list