Bug 804606. On Mac, call ApplyPluginGeometryUpdates immediately when we've computed geometry, instead of waiting until the paint event. r=smichaud

--HG--
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_geoprompt.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_geoprompt.js
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_geoprompt_page.html => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_geoprompt_page.html
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_openlocation.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_openlocation.js
rename : browser/components/privatebrowsing/test/browser/perwindow/browser_privatebrowsing_zoomrestore.js => browser/components/privatebrowsing/test/browser/global/browser_privatebrowsing_zoomrestore.js
rename : toolkit/system/androidproxy/Makefile.in => toolkit/system/windowsproxy/Makefile.in
rename : toolkit/system/androidproxy/nsAndroidSystemProxySettings.cpp => toolkit/system/windowsproxy/nsWindowsSystemProxySettings.cpp
extra : rebase_source : 006071633b23f5ab34a27e46100fe32fbff9f735
This commit is contained in:
Robert O'Callahan 2012-11-07 09:38:11 +13:00
parent 3c564bbf3e
commit 2732b3ebdd
2 changed files with 8 additions and 0 deletions

View File

@ -2617,7 +2617,13 @@ nsRootPresContext::ComputePluginGeometryUpdates(nsIFrame* aFrame,
aList->ComputeVisibilityForRoot(aBuilder, &region);
}
#ifdef XP_MACOSX
// We control painting of Mac plugins, so just apply geometry updates now.
// This is not happening during a paint event.
ApplyPluginGeometryUpdates();
#else
InitApplyPluginGeometryTimer();
#endif
}
static void

View File

@ -7127,7 +7127,9 @@ PresShell::WillPaintWindow(bool aWillSendDidPaint)
return;
}
#ifndef XP_MACOSX
rootPresContext->ApplyPluginGeometryUpdates();
#endif
}
void