зеркало из https://github.com/mozilla/pjs.git
change assertions to warnings. b=291096 r=pinkerton sr=smfr a=bsmedberg
This commit is contained in:
Родитель
b751cfa748
Коммит
ac20933d22
|
@ -2422,12 +2422,12 @@ NS_IMETHODIMP nsWindow::ResetInputState()
|
|||
// currently, the nsMacEventHandler is owned by nsMacWindow, which is the top level window
|
||||
// we delegate this call to its parent
|
||||
nsCOMPtr<nsIWidget> parent = getter_AddRefs(GetParent());
|
||||
NS_ASSERTION(parent, "cannot get parent");
|
||||
if(parent)
|
||||
NS_WARN_IF_FALSE(parent, "cannot get parent");
|
||||
if (parent)
|
||||
{
|
||||
nsCOMPtr<nsIKBStateControl> kb = do_QueryInterface(parent);
|
||||
NS_ASSERTION(kb, "cannot get parent");
|
||||
if(kb) {
|
||||
nsCOMPtr<nsIKBStateControl> kb = do_QueryInterface(parent);
|
||||
NS_WARN_IF_FALSE(kb, "cannot get parent");
|
||||
if (kb) {
|
||||
return kb->ResetInputState();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче