зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
125805c748
Коммит
888a06e070
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче