Stop image control frame stomping on the event status. This stops context menu events being propogated to their parents and sent twice for input elements with images. bugscape=14131 r=saari@netscape.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@120455 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -329,6 +329,11 @@ nsImageControlFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aEventStatus);
|
||||
|
||||
// Don't do anything if the event has already been handled by someone
|
||||
if (nsEventStatus_eConsumeNoDefault == *aEventStatus) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// do we have user-input style?
|
||||
const nsStyleUserInterface* uiStyle;
|
||||
GetStyleData(eStyleStruct_UserInterface, (const nsStyleStruct *&)uiStyle);
|
||||
|
||||
Reference in New Issue
Block a user