changeset 3971:067e6580a577

6862611: Reg testcase closed/java/awt/Component/NativeInLightShow/NativeInLightShow.html fails Summary: The recursiveShowHeavyweightChildren() must be invoked unconditionally in mixOnShowing() Reviewed-by: art, dcherepanov
author anthony
date Thu, 01 Oct 2009 15:06:16 +0400
parents a7c4a8080cc1
children 8942e64cf57d b63d0a7f93a7
files jdk/src/share/classes/java/awt/Container.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);
             }
 
+            boolean isLightweight = isLightweight();
+
+            if (isLightweight && isRecursivelyVisibleUpToHeavyweightContainer()) {
+                recursiveShowHeavyweightChildren();
+            }
+
             if (!isMixingNeeded()) {
                 return;
             }
 
-            boolean isLightweight = isLightweight();
-
-            if (isLightweight && isRecursivelyVisibleUpToHeavyweightContainer()) {
-                recursiveShowHeavyweightChildren();
-            }
-
             if (!isLightweight || (isLightweight && hasHeavyweightDescendants())) {
                 recursiveApplyCurrentShape();
             }