-
Bug
-
Resolution: Fixed
-
P3
-
8u72
-
JDK 1.8.0_72 64-bit
Windows 7
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8153329 | 8u102 | Jonathan Giles | P3 | Resolved | Fixed | b02 |
When a Node hierarchy is added to the Scene CSS is applied multiple times depending on the depth of the node in the added hierarchy. For every level of depth in the hierarchy the CSS is applied an extra time.
See attached test case where a VBox containing another VBox containing a Rectangle is added to the Scene. Run the application in a debugger. When the UI appears set a breakpoint at Node.reapplyCss() then hit the button. Note that the breakpoint is hit three times for the Rectangle, twice for the 'parent2' VBox, and once for the 'parent1' VBox.
This leads to significantly poorer performance and causes far more garbage to be generated than it should.
See attached test case where a VBox containing another VBox containing a Rectangle is added to the Scene. Run the application in a debugger. When the UI appears set a breakpoint at Node.reapplyCss() then hit the button. Note that the breakpoint is hit three times for the Rectangle, twice for the 'parent2' VBox, and once for the 'parent1' VBox.
This leads to significantly poorer performance and causes far more garbage to be generated than it should.
- backported by
-
JDK-8153329 JavaFX CSS is applied redundantly leading to significant performance degradation
- Resolved
- relates to
-
JDK-8193445 JavaFX CSS is applied redundantly leading to significant performance degradation
- Resolved
-
JDK-8145885 StackOverflow in rendering if two many level of pane (Hbox, VBox, ...)
- Closed
-
JDK-8183100 Styles not applied reliably after Java 8u92
- Resolved
-
JDK-8168951 Colors not display on LineChart
- Closed