void nsViewManager::ProcessPendingUpdates() { if (!IsRootVM()) { RootViewManager()->ProcessPendingUpdates(); return; } if (IsRefreshDriverPaintingEnabled()) { mPresShell->GetPresContext()->RefreshDriver()->RevokeViewManagerFlush(); if (mHasPendingUpdates) { mHasPendingUpdates = false; // Flush things like reflows and plugin widget geometry updates by // calling WillPaint on observer presShells. if (mPresShell) { CallWillPaintOnObservers(true); } ProcessPendingUpdatesForView(mRootView, true); CallDidPaintOnObserver(); } } else if (mHasPendingUpdates) { ProcessPendingUpdatesForView(mRootView, true); mHasPendingUpdates = false; } }
void nsViewManager::ProcessPendingUpdates() { if (!IsRootVM()) { RootViewManager()->ProcessPendingUpdates(); return; } mPresShell->GetPresContext()->RefreshDriver()->RevokeViewManagerFlush(); // Flush things like reflows by calling WillPaint on observer presShells. if (mPresShell) { CallWillPaintOnObservers(true); } ProcessPendingUpdatesForView(mRootView, true); }