зеркало из https://github.com/mozilla/gecko-dev.git
Make SetWidget assertion more particular about when to bomb
This commit is contained in:
Родитель
365dc91b93
Коммит
b45ad2aecd
|
@ -974,8 +974,11 @@ NS_IMETHODIMP nsScrollingView :: CreateScrollControls(nsNativeWidget aNative)
|
|||
|
||||
NS_IMETHODIMP nsScrollingView :: SetWidget(nsIWidget *aWidget)
|
||||
{
|
||||
NS_ASSERTION(PR_FALSE, "please don't try and set a widget here");
|
||||
return NS_ERROR_FAILURE;
|
||||
if (nsnull != aWidget) {
|
||||
NS_ASSERTION(PR_FALSE, "please don't try and set a widget here");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsScrollingView :: ComputeScrollOffsets(PRBool aAdjustWidgets)
|
||||
|
|
Загрузка…
Ссылка в новой задаче