On Thu, 13 Mar 2025 14:51:19 GMT, Kevin Rushforth <k...@openjdk.org> wrote:
> My thought on this bug was to fix it in the scenegraph, rather than forcing a > complete repaint in the toolkit. The scenegraph tracks the state of what is > dirty and would only need to repaint if something has changed (and probably > only those parts that have changed). > > @arapte Can you take a look at this and see what you think? I am not able to > look at it for at least a week. Yeah, I'm sort of mimicking what happens when a RESCALE or MOVE occurs, so it is similar to what some of the other handlers do (MOVE does `updateSceneState`, and RESCALE does that and `entireSceneNeedsRepaint`). I'm not that well versed in the differences between these two, but it seemed not a bad place to fix this as restores happen very rarely. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1733#issuecomment-2721719308