26269 Remvoe bogus assertions to fix debug build bustage.

git-svn-id: svn://10.0.0.236/trunk@205006 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mark%moxienet.com
2006-07-27 23:41:26 +00:00
parent f44d5f241d
commit 77a930be66

View File

@@ -1124,12 +1124,10 @@ PRBool nsMacEventHandler::HandleUKeyEvent(const PRUnichar* text, long charCount,
nsMouseEvent contextMenuEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal);
ConvertKeyEventToContextMenuEvent(&keyPressEvent, &contextMenuEvent);
handled |= focusedWidget->DispatchWindowEvent(contextMenuEvent);
NS_ASSERTION(NS_SUCCEEDED(result), "cannot DispatchWindowEvent");
}
else {
// Send ordinary keypresses
handled |= focusedWidget->DispatchWindowEvent(keyPressEvent);
NS_ASSERTION(NS_SUCCEEDED(result), "cannot DispatchWindowEvent");
}
}
}
@@ -1138,7 +1136,6 @@ PRBool nsMacEventHandler::HandleUKeyEvent(const PRUnichar* text, long charCount,
nsKeyEvent keyPressEvent(PR_TRUE, NS_KEY_PRESS, nsnull);
InitializeKeyEvent(keyPressEvent, aOSEvent, focusedWidget, NS_KEY_PRESS, PR_FALSE);
handled = focusedWidget->DispatchWindowEvent(keyPressEvent);
NS_ASSERTION(NS_SUCCEEDED(result), "cannot DispatchWindowEvent");
}
return handled;
}