Bug 629823 - Assert that the root view size is in sync with the pres context visible size. r=tnikkel a=roc

This commit is contained in:
Mats Palmgren 2011-02-10 23:38:37 +01:00
Родитель 125805c748
Коммит 888a06e070
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -4911,6 +4911,16 @@ PresShell::FlushPendingNotifications(mozFlushType aType)
if (rootPresContext) {
rootPresContext->UpdatePluginGeometry();
}
#ifdef DEBUG
if (!mIsDestroying) {
nsIView* rootView;
if (NS_SUCCEEDED(mViewManager->GetRootView(rootView)) && rootView) {
nsRect bounds = rootView->GetBounds();
NS_ASSERTION(bounds.Size() == mPresContext->GetVisibleArea().Size(),
"root view / pres context visible size mismatch");
}
}
#endif
}
PRUint32 updateFlags = NS_VMREFRESH_NO_SYNC;