change assertions to warnings. b=291096 r=pinkerton sr=smfr a=bsmedberg

This commit is contained in:
joshmoz%gmail.com 2005-07-28 23:51:21 +00:00
Родитель b751cfa748
Коммит ac20933d22
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -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();
}
}