changeset 5583:eb21f864f79f

RT-33763 : ScenePulseListener.focusCleanup() may cause extra rendering, reviewed by Pavel, David
author mickf
date Wed, 30 Oct 2013 15:53:41 +0000
parents 4b2e1c5831e9
children 88e06514b086
files modules/graphics/src/main/java/javafx/scene/Scene.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/javafx/scene/Scene.java	Wed Oct 30 16:43:50 2013 +0200
+++ b/modules/graphics/src/main/java/javafx/scene/Scene.java	Wed Oct 30 15:53:41 2013 +0000
@@ -2328,6 +2328,8 @@
                 PerformanceTracker.logEvent("Scene - first repaint");
             }
 
+            focusCleanup();
+
             if (PULSE_LOGGING_ENABLED) {
                 long start = System.currentTimeMillis();
                 Scene.this.doCSSPass();
@@ -2386,8 +2388,6 @@
             // required for image cursor created from animated image
             Scene.this.mouseHandler.updateCursorFrame();
 
-            focusCleanup();
-
             if (firstPulse) {
                 if (PerformanceTracker.isLoggingEnabled()) {
                     PerformanceTracker.logEvent("Scene - first repaint - layout complete");