mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1121811 - Fix redraw loop regression causing mac plugins to draw at 60 FPS. r=josh
This commit is contained in:
parent
dea860b3f7
commit
7f3f1a073e
@ -1003,7 +1003,11 @@ nsPluginFrame::NotifyPluginReflowObservers()
|
||||
void
|
||||
nsPluginFrame::DidSetWidgetGeometry()
|
||||
{
|
||||
#ifndef XP_MACOSX
|
||||
#if defined(XP_MACOSX)
|
||||
if (mInstanceOwner) {
|
||||
mInstanceOwner->FixUpPluginWindow(nsPluginInstanceOwner::ePluginPaintEnable);
|
||||
}
|
||||
#else
|
||||
if (!mWidget && mInstanceOwner) {
|
||||
// UpdateWindowVisibility will notify the plugin of position changes
|
||||
// by updating the NPWindow and calling NPP_SetWindow/AsyncSetWindow.
|
||||
@ -1014,8 +1018,6 @@ nsPluginFrame::DidSetWidgetGeometry()
|
||||
nsLayoutUtils::IsPopup(nsLayoutUtils::GetDisplayRootFrame(this)) ||
|
||||
!mNextConfigurationBounds.IsEmpty());
|
||||
}
|
||||
#else
|
||||
CallSetWindow(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user