changeset 1729:80db944866a9

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 cf3f9c09ba1d
children 4358934555bc 49c198e30d5e
files src/share/classes/java/awt/Container.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Container.java	Thu Oct 01 14:48:05 2009 +0400
+++ b/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();
             }