Bug 505912. Trust the widget visibility in UpdateWidgetArea. r=dbaron

--HG--
extra : rebase_source : 4c6e1b2366b430763cce546ab0e26576705a0ca3
This commit is contained in:
Robert O'Callahan 2009-07-27 09:17:43 +12:00
parent ccb681093e
commit c95fd3cf9a
3 changed files with 12 additions and 9 deletions

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body onload="document.getElementById('x').style.visibility = 'hidden';">
<embed id="x" type="application/x-test" wmode="window"></embed>
</body>
</html>

View File

@ -235,3 +235,4 @@ load 479938-1.html
load 480345-1.html
load 494332-1.html
load 501535-1.html
load 505912-1.html

View File

@ -738,15 +738,11 @@ nsViewManager::UpdateWidgetArea(nsView *aWidgetView, nsIWidget* aWidget,
}
// If the widget is hidden, it don't cover nothing
if (nsViewVisibility_kHide == aWidgetView->GetVisibility()) {
#ifdef DEBUG
if (aWidget) {
PRBool visible;
aWidget->IsVisible(visible);
NS_ASSERTION(!visible, "View is hidden but widget is visible!");
}
#endif
return;
if (aWidget) {
PRBool visible;
aWidget->IsVisible(visible);
if (!visible)
return;
}
if (aWidgetView == aIgnoreWidgetView) {