On Mon, 5 Oct 2026 18:43:08 GMT, Marius Hanl <[email protected]> wrote:
> This was found in > [JDK-8365309](https://bugs.openjdk.org/browse/JDK-8365309)(https://github.com/openjdk/jfx/pull/2299) > and is also closely related, as solving this issue here makes life easier to > solve the refactoring in that PR in a clean way. > > `TitledPaneSkin` is the only `Control` (Skin) that caches the `Node` via > `setCache`, only for embedded devices. > > I propose to remove it. > Because: > - Other `Control` (Skin)s do not have this special treatment > - Embedded check is not a real indicator how powerful a device is > - Currently, when the animation is cancelled the `setCache(false)` may never > run, making the flag permanent > - Since [JDK-8385459](https://bugs.openjdk.org/browse/JDK-8385459), we will > respect the `reducedMotion` user preference. This can be easily used to > disable all animations, including the `TitledPane` one > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 68b0b112 Author: Marius Hanl <[email protected]> URL: https://git.openjdk.org/jfx/commit/68b0b1123f426a06674018b0040d54d06a949f2c Stats: 17 lines in 1 file changed: 0 ins; 17 del; 0 mod 8393545: TitledPaneSkin caches animation on embedded devices Reviewed-by: angorya, jhendrikx ------------- PR: https://git.openjdk.org/jfx/pull/2336
