mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 505912. Trust the widget visibility in UpdateWidgetArea. r=dbaron
--HG-- extra : rebase_source : 4c6e1b2366b430763cce546ab0e26576705a0ca3
This commit is contained in:
parent
ccb681093e
commit
c95fd3cf9a
6
layout/generic/crashtests/505912-1.html
Normal file
6
layout/generic/crashtests/505912-1.html
Normal 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>
|
@ -235,3 +235,4 @@ load 479938-1.html
|
||||
load 480345-1.html
|
||||
load 494332-1.html
|
||||
load 501535-1.html
|
||||
load 505912-1.html
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user