Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v6]

2023-08-01 Thread Prasanta Sadhukhan
On Tue, 1 Aug 2023 10:25:33 GMT, John Hendrikx wrote: > @prsadhuk @hjohn I'll take a closer look early next week, but I think the > best way forward might be for Prasanta to evaluate #1189 and, if the modified > fix in that PR is what we want to use, update _this_ PR to include the change > th

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v7]

2023-08-01 Thread Prasanta Sadhukhan
> When the JavaFX scene is set before it is really shown, then the scale > factors are not properly propagated to the EmbeddedWindow, resulting in > showing wrong scales. > Fix is made to update scales to EmbeddedWindow Prasanta Sadhukhan has updated the pull request incrementally with one addi

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Tue, 1 Aug 2023 17:02:33 GMT, Michael Strauß wrote: >> Yeah, I figured as much. I just don't like code that you can't get covered >> in a unit test, or that contradicts itself. As you can see, I was confused, >> is it a bug or a feature? Perhaps a comment then to indicate that it's >> in

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Tue, 1 Aug 2023 16:44:08 GMT, Michael Strauß wrote: >> I'm not a native either, but it flows a bit better IMHO. I checked `String` >> class, they do it like that there as well. > > In the `String` class, I find 10 usages of `{@code false} otherwise`, and 2 > usages of `otherwise {@code fals

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread Michael Strauß
On Tue, 1 Aug 2023 10:49:42 GMT, John Hendrikx wrote: >> The constructor ensures that any spelling of "ALL" is converted to the >> interned constant "all", which is important as we would otherwise need a >> more computationally expensive case-insensitive string comparison in >> `Node.Transitio

Re: RFR: 8311895: CSS Transitions [v6]

2023-08-01 Thread Michael Strauß
> Implementation of [CSS > Transitions](https://gist.github.com/mstr2/c72f8c9faa87de14926978f517a6018a). > > ### Example > > .button { > -fx-background-color: dodgerblue; > } > > .button:hover { > -fx-background-color: red; > -fx-scale-x: 1.1; > -fx-scale-y: 1.1; > > transi

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread Michael Strauß
On Tue, 1 Aug 2023 13:46:15 GMT, John Hendrikx wrote: >> That's true. However, `CssParser` is built around array-based sequences (see >> `StringConverter.SequenceConverter`), and changing these arrays to lists >> would seem out of place for this part of the codebase. What do you think? > > It d

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread Michael Strauß
On Tue, 1 Aug 2023 13:47:19 GMT, John Hendrikx wrote: >> I don't see any real difference here, but then again I'm not a native >> speaker. I'll defer to public opinion. > > I'm not a native either, but it flows a bit better IMHO. I checked `String` > class, they do it like that there as well.

cancel

2023-08-01 Thread dms489
I have changed resouces. DMS -- David Smith david.sm...@dms489.com

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Mon, 31 Jul 2023 18:20:34 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/javafx/scene/Node.java line 8968: >> >>> 8966: >>> 8967: for (TransitionTimer timer : transitionTimers) { >>> 8968: if (timer.getProperty() == property) { >> >> minor: this prob

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Mon, 31 Jul 2023 18:16:19 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/javafx/css/TransitionEvent.java line >> 88: >> >>> 86: * @param eventType the event type >>> 87: * @param property the {@code StyleableProperty} that is targeted >>> by the transition >>>

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Mon, 31 Jul 2023 18:01:31 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/com/sun/scenario/animation/StepInterpolator.java >> line 73: >> >>> 71: } >>> 72: >>> 73: if (t >= 0 && step < 0) { >> >> `t >= 0` always holds, perhaps the original `t` was meant

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Mon, 31 Jul 2023 18:07:52 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/css/TransitionDefinitionCssMetaData.java >> line 63: >> >>> 61: private static final Duration[] DURATION_ZERO = new Duration[] { >>> Duration.ZERO }; >>> 62: >>> 63: private

Integrated: 8313177: Web Workers timeout with Webkit 616.1

2023-08-01 Thread Jay Bhaskar
On Mon, 31 Jul 2023 06:03:58 GMT, Jay Bhaskar wrote: > Issue: Some web worker tests fail to finish. > Root Cause: > sharedTimerFiredInternal function from ThreadTimers class does not require an > isMainThread check, The check was introduced during the initial webkit > stabilization. This pull

Re: RFR: 8313177: Web Workers timeout with Webkit 616.1 [v3]

2023-08-01 Thread Hima Bindu Meda
On Tue, 1 Aug 2023 09:54:03 GMT, Jay Bhaskar wrote: >> Issue: Some web worker tests fail to finish. >> Root Cause: >> sharedTimerFiredInternal function from ThreadTimers class does not require >> an isMainThread check, The check was introduced during the initial webkit >> stabilization. > > Jay

Re: RFR: 8307536: FileAlreadyExistsException from NativeLibLoader when running concurrent applications with empty cache

2023-08-01 Thread Jose Pereda
On Tue, 1 Aug 2023 06:59:59 GMT, Johan Vos wrote: >> modules/javafx.graphics/src/main/java/com/sun/glass/utils/NativeLibLoader.java >> line 311: >> >>> 309: FileLock fileLock = fileChannel.lock()) { >>> 310: try { >>> 311: if (!Files.exists(p

Re: RFR: 8307536: FileAlreadyExistsException from NativeLibLoader when running concurrent applications with empty cache

2023-08-01 Thread Jose Pereda
On Tue, 1 Aug 2023 09:31:15 GMT, Marius Hanl wrote: >> modules/javafx.graphics/src/main/java/com/sun/glass/utils/NativeLibLoader.java >> line 312: >> >>> 310: try { >>> 311: if (!Files.exists(path)) { >>> 312: Files.copy(is, path); >>

Re: RFR: 8313177: Web Workers timeout with Webkit 616.1 [v3]

2023-08-01 Thread Kevin Rushforth
On Tue, 1 Aug 2023 09:54:03 GMT, Jay Bhaskar wrote: >> Issue: Some web worker tests fail to finish. >> Root Cause: >> sharedTimerFiredInternal function from ThreadTimers class does not require >> an isMainThread check, The check was introduced during the initial webkit >> stabilization. > > Jay

Re: RFR: 8311895: CSS Transitions [v2]

2023-08-01 Thread John Hendrikx
On Mon, 31 Jul 2023 18:29:19 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/css/TransitionDefinition.java >> line 54: >> >>> 52: */ >>> 53: public TransitionDefinition(String propertyName, Duration duration, >>> 54: Du

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v6]

2023-08-01 Thread John Hendrikx
On Tue, 1 Aug 2023 04:46:31 GMT, Prasanta Sadhukhan wrote: > > @prsadhuk @hjohn I'll take a closer look early next week, but I think the > > best way forward might be for Prasanta to evaluate #1189 and, if the > > modified fix in that PR is what we want to use, update _this_ PR to include > >

Re: RFR: 8260342: FXMLLoader fails to load a sub layout using fx:include with the resources attribute [v2]

2023-08-01 Thread Ajit Ghaisas
On Wed, 21 Jun 2023 13:34:28 GMT, Guillaume Tâche wrote: >> This fixes ResourceBundle loading by calling >> `ResourceBundle.getBundle(value, Locale.getDefault())` when the loader >> resources are null or their classloader is null. >> Apparently the original author of the bug report said the

Re: RFR: 8313177: Web Workers timeout with Webkit 616.1 [v2]

2023-08-01 Thread Jay Bhaskar
On Mon, 31 Jul 2023 22:26:48 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add test case for worker timeout > > modules/javafx.web/src/test/java/test/javafx/scene/web/WebWorkerTest.java > lin

Re: RFR: 8313177: Web Workers timeout with Webkit 616.1 [v3]

2023-08-01 Thread Jay Bhaskar
> Issue: Some web worker tests fail to finish. > Root Cause: > sharedTimerFiredInternal function from ThreadTimers class does not require an > isMainThread check, The check was introduced during the initial webkit > stabilization. Jay Bhaskar has updated the pull request incrementally with one a

Re: RFR: 8307536: FileAlreadyExistsException from NativeLibLoader when running concurrent applications with empty cache

2023-08-01 Thread Marius Hanl
On Mon, 31 Jul 2023 16:49:36 GMT, Andy Goryachev wrote: >> This PR adds a file lock to the cache directory, allowing access from >> multiple processes (that is, from more than one JVM) to that directory. >> >> This helps solving the issue where the cache is empty or doesn't exist yet, >> and

Re: RFR: 8313177: Web Workers timeout with Webkit 616.1 [v2]

2023-08-01 Thread Hima Bindu Meda
On Mon, 31 Jul 2023 08:16:12 GMT, Jay Bhaskar wrote: >> Issue: Some web worker tests fail to finish. >> Root Cause: >> sharedTimerFiredInternal function from ThreadTimers class does not require >> an isMainThread check, The check was introduced during the initial webkit >> stabilization. > > Ja

Withdrawn: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0

2023-08-01 Thread duke
On Wed, 22 Feb 2023 01:11:55 GMT, Thiago Milczarek Sayao wrote: > Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore this > scroll event type, deltas are sent to java with the value equal to zero. > > Here's whats happening: > > We include all event masks, so when using

Re: RFR: 8307536: FileAlreadyExistsException from NativeLibLoader when running concurrent applications with empty cache

2023-08-01 Thread Johan Vos
On Mon, 31 Jul 2023 16:52:00 GMT, Andy Goryachev wrote: >> This PR adds a file lock to the cache directory, allowing access from >> multiple processes (that is, from more than one JVM) to that directory. >> >> This helps solving the issue where the cache is empty or doesn't exist yet, >> and