зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801842. Treat windowless plugins in popups as always visible, since we don't compute proper geometry for them. r=tnikkel
--HG-- extra : rebase_source : a6ad44a8dc4b596f3a83fcd19ba97cda43e4def1
This commit is contained in:
Родитель
f12ff30dc6
Коммит
528576f042
|
@ -1152,7 +1152,12 @@ nsObjectFrame::DidSetWidgetGeometry()
|
|||
if (!mWidget && mInstanceOwner) {
|
||||
// UpdateWindowVisibility will notify the plugin of position changes
|
||||
// by updating the NPWindow and calling NPP_SetWindow/AsyncSetWindow.
|
||||
mInstanceOwner->UpdateWindowVisibility(!mNextConfigurationBounds.IsEmpty());
|
||||
// We treat windowless plugins inside popups as always visible, since
|
||||
// plugins inside popups don't get valid mNextConfigurationBounds
|
||||
// set up.
|
||||
mInstanceOwner->UpdateWindowVisibility(
|
||||
nsLayoutUtils::IsPopup(nsLayoutUtils::GetDisplayRootFrame(this)) ||
|
||||
!mNextConfigurationBounds.IsEmpty());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче