Bug 1121811 - Fix redraw loop regression causing mac plugins to draw at 60 FPS. r=josh

This commit is contained in:
Benoit Girard 2015-01-21 14:02:32 -05:00
parent dea860b3f7
commit 7f3f1a073e

View File

@ -1003,7 +1003,11 @@ nsPluginFrame::NotifyPluginReflowObservers()
void void
nsPluginFrame::DidSetWidgetGeometry() nsPluginFrame::DidSetWidgetGeometry()
{ {
#ifndef XP_MACOSX #if defined(XP_MACOSX)
if (mInstanceOwner) {
mInstanceOwner->FixUpPluginWindow(nsPluginInstanceOwner::ePluginPaintEnable);
}
#else
if (!mWidget && mInstanceOwner) { if (!mWidget && mInstanceOwner) {
// UpdateWindowVisibility will notify the plugin of position changes // UpdateWindowVisibility will notify the plugin of position changes
// by updating the NPWindow and calling NPP_SetWindow/AsyncSetWindow. // by updating the NPWindow and calling NPP_SetWindow/AsyncSetWindow.
@ -1014,8 +1018,6 @@ nsPluginFrame::DidSetWidgetGeometry()
nsLayoutUtils::IsPopup(nsLayoutUtils::GetDisplayRootFrame(this)) || nsLayoutUtils::IsPopup(nsLayoutUtils::GetDisplayRootFrame(this)) ||
!mNextConfigurationBounds.IsEmpty()); !mNextConfigurationBounds.IsEmpty());
} }
#else
CallSetWindow(false);
#endif #endif
} }