6689468: test/closed/java/awt/Component/VisibleHwInLwContTest/VisibleHwInLwContTest.html fails

The addNotify() checks whether the component is actually hidden, and hides the peer appropriately if needed

Reviewed-by: art, dcherepanov
This commit is contained in:
Anthony Petrov 2009-08-28 19:34:00 +04:00
parent 8b2b083b28
commit 197de32fb3

View File

@ -6665,6 +6665,9 @@ public abstract class Component implements ImageObserver, MenuContainer,
Container parent = this.parent;
if (parent != null && parent.peer instanceof LightweightPeer) {
relocateComponent();
if (!isRecursivelyVisible()) {
peer.setVisible(false);
}
}
}
invalidate();