mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
26269 Remvoe bogus assertions to fix debug build bustage.
This commit is contained in:
parent
d4f77d8447
commit
e2d02752d9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user