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:
Robert O'Callahan 2012-11-28 02:18:39 +13:00
Родитель f12ff30dc6
Коммит 528576f042
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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
}