Bug 1543315 - part 13: Mark PresShell::Paint() as MOZ_CAN_RUN_SCRIPT r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D30008
This commit is contained in:
Masayuki Nakano
2019-05-06 13:25:35 +00:00
parent d39ce0ad7d
commit f63fd7340c
11 changed files with 31 additions and 19 deletions

View File

@@ -1388,7 +1388,8 @@ bool nsComboboxControlFrame::Rollup(uint32_t aCount, bool aFlush,
if (aFlush && weakFrame.IsAlive()) {
// The popup's visibility doesn't update until the minimize animation has
// finished, so call UpdateWidgetGeometry to update it right away.
nsViewManager* viewManager = mDropdownFrame->GetView()->GetViewManager();
RefPtr<nsViewManager> viewManager =
mDropdownFrame->GetView()->GetViewManager();
viewManager->UpdateWidgetGeometry(); // might destroy us
}