6862611: Reg testcase closed/java/awt/Component/NativeInLightShow/NativeInLightShow.html fails
authoranthony
Thu, 01 Oct 2009 15:06:16 +0400
changeset 3971 067e6580a577
parent 3970 a7c4a8080cc1
child 3972 8942e64cf57d
child 4254 b63d0a7f93a7
6862611: Reg testcase closed/java/awt/Component/NativeInLightShow/NativeInLightShow.html fails Summary: The recursiveShowHeavyweightChildren() must be invoked unconditionally in mixOnShowing() Reviewed-by: art, dcherepanov
jdk/src/share/classes/java/awt/Container.java
--- a/jdk/src/share/classes/java/awt/Container.java	Thu Oct 01 14:48:05 2009 +0400
+++ b/jdk/src/share/classes/java/awt/Container.java	Thu Oct 01 15:06:16 2009 +0400
@@ -4111,16 +4111,16 @@
                 mixingLog.fine("this = " + this);
             }
 
-            if (!isMixingNeeded()) {
-                return;
-            }
-
             boolean isLightweight = isLightweight();
 
             if (isLightweight && isRecursivelyVisibleUpToHeavyweightContainer()) {
                 recursiveShowHeavyweightChildren();
             }
 
+            if (!isMixingNeeded()) {
+                return;
+            }
+
             if (!isLightweight || (isLightweight && hasHeavyweightDescendants())) {
                 recursiveApplyCurrentShape();
             }