Re: RFR: 8236753: Animations do not play backwards after being stopped

2020-01-17 Thread Nir Lisker
On Fri, 17 Jan 2020 22:48:11 GMT, Kevin Rushforth wrote: >>> So this PR may need a document change for `Animation.play()` >> >> Yes, and the docs need clarification in other places anyway. The [parent >> issue](https://bugs.openjdk.java.net/browse/JDK-8210238) from which this bug >> was

Re: [Rev 01] RFR: 8236753: Animations do not play backwards after being stopped

2020-01-17 Thread Nir Lisker
> The private field `lastPlayFinished` is responsible for 2 cases where an > animation in `STOPPED` status does not play after `play()` is called if the > rate is negative: > > 1. When the animation is created, it is `STOPPED` and `lastPlayFinished` is > `false`. Setting a negative rate and

Re: RFR: 8232824: Removing TabPane with strong referenced content causes memory leak from weak one

2020-01-17 Thread Kevin Rushforth
On Mon, 13 Jan 2020 16:49:41 GMT, Ambarish Rapte wrote: >> This will need a second reviewer. >> >> @aghaisas can you review this, too? > >> >> >> @arapte - This bug looks like a good candidate for JavaFX 14. Can you >> retarget this PR to the jfx14 branch? > > Thanks for guiding Kevin, PR

Re: [Rev 03] RFR: 8236912: NullPointerException when clicking in WebView with Button 4 or Button 5

2020-01-17 Thread Kevin Rushforth
On Fri, 17 Jan 2020 23:18:40 GMT, Robert Lichtenberger wrote: >> As documented in JDK-8236912, WebView did not check whether the idMap really >> contained a mapping for the given button, making it prone to errors, when >> things are extended (as has happened here). >> >> The fix consists of

Re: RFR: 8236753: Animations do not play backwards after being stopped

2020-01-17 Thread Kevin Rushforth
On Thu, 16 Jan 2020 01:09:56 GMT, Nir Lisker wrote: >>> If cycleCount is set to 2 does the animation play the same number of times >>> with or without the jumpTo both before and after this change? >> >> Before the change: >> * With `jumpTo`: plays backwards 2 times. >> * Without `jumpTo`:

Re: [Rev 02] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Kevin Rushforth
On Fri, 17 Jan 2020 17:25:51 GMT, Frederic Thevenet wrote: >>> >>> >>> I tested this fix against the repro code in >>> [javafxports/openjdk-jfx#433](https://github.com/javafxports/openjdk-jfx/issues/433) >>> (which is >>> [JDK-838](https://bugs.openjdk.java.net/browse/JDK-838)),

Re: [Rev 02] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Nir Lisker
On Fri, 17 Jan 2020 19:22:24 GMT, Kevin Rushforth wrote: >> I'm not 100% convinced this would really add much to the readability of the >> code; I extracted the code from `doSnapshotTile` in its own method because >> it is called twice (on both sides of the `if (height > maxTextureSize || >>

Re: RFR: 8237469: CssStyleHelper reuse check fixed

2020-01-17 Thread Kevin Rushforth
On Fri, 17 Jan 2020 14:09:54 GMT, Dean Wookey wrote: > Everything passes with the fix and 5 of the new tests fail without the fix. > > removingThenAddingNodeToDifferentBranchGetsNewFontStyleTest > movingBranchToDifferentBranchGetsNewCssVariableTest >

Re: RFR: 8237469: CssStyleHelper reuse check fixed

2020-01-17 Thread Kevin Rushforth
On Fri, 17 Jan 2020 18:40:34 GMT, Kevin Rushforth wrote: >> Everything passes with the fix and 5 of the new tests fail without the fix. >> >> removingThenAddingNodeToDifferentBranchGetsNewFontStyleTest >> movingBranchToDifferentBranchGetsNewCssVariableTest >>

Re: [Rev 02] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Frederic Thevenet
On Fri, 17 Jan 2020 11:28:03 GMT, Frederic Thevenet wrote: >> I tested this fix against the repro code in >> https://github.com/javafxports/openjdk-jfx/issues/433 (which is >> [JDK-838](https://bugs.openjdk.java.net/browse/JDK-838)), but there >> is still an NPE. I'm not certain that

Re: [Rev 02] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Frederic Thevenet
On Thu, 16 Jan 2020 16:08:05 GMT, Nir Lisker wrote: >> The pull request has been updated with 2 additional commits. > > modules/javafx.graphics/src/main/java/javafx/scene/Scene.java line 1316: > >> 1315: } >> 1316: } >> 1317: } else { > > I would extract

Re: [Rev 03] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Frederic Thevenet
> This PR aims to address the following issue: JDK-8088198 Exception thrown > from snapshot if dimensions are larger than max texture size > > In order to do that, it simply captures snapshots in multiple tiles of > maxTextureSize^2 dimensions (or less, as needed), and then recomposes all the

RFR: 8237469: CssStyleHelper reuse check fixed

2020-01-17 Thread Dean Wookey
Everything passes with the fix and 5 of the new tests fail without the fix. removingThenAddingNodeToDifferentBranchGetsNewFontStyleTest movingBranchToDifferentBranchGetsNewCssVariableTest removingThenAddingNodeToDifferentBranchGetsCorrectInheritedValue

Re: Correct branch for PR?

2020-01-17 Thread Kevin Rushforth
Since this is a P3 bug, you can target this to jfx14 as long as the fix is safe. The reviewers might ask for it to be retargeted to master, but that won't be a problem (going the other way is the direction that requires more care and a possible rebase). -- Kevin On 1/16/2020 11:29 PM,

RE: Correct branch for PR?

2020-01-17 Thread Thiago Milczarek Sayao
AFAIK, use master. They will decide to backport to a point release or not. De: openjfx-dev em nome de Robert Lichtenberger Enviado: sexta-feira, 17 de janeiro de 2020 04:29 Para: openjfx-dev@openjdk.java.net Mailing Assunto: Correct branch for PR? I have a

Re: [Rev 02] RFR: 8088198: Exception thrown from snapshot if dimensions are larger than max texture size

2020-01-17 Thread Frederic Thevenet
On Thu, 16 Jan 2020 17:00:32 GMT, Nir Lisker wrote: >> The pull request has been updated with 2 additional commits. > > I tested this fix against the repro code in > https://github.com/javafxports/openjdk-jfx/issues/433 (which is >

Re: [EXTERNAL] CssStyleHelper canReuseStyleHelper

2020-01-17 Thread Dean Wookey
Hi David, Thanks, I wrote that test as a graphics module test and it does fail. https://gist.github.com/DeanWookey/2624945e3ba037f00c39c0bfd0b22cef It passes if you move node.styleHelper.firstStyleableAncestor = findFirstStyleableAncestor(node); (line 134) to line 321. I imagine there is some