Bug 330710, Replace obsolete preventBubble/preventCapture with stopPropagation, r=neil, r=mconnor, sr=jst

git-svn-id: svn://10.0.0.236/trunk@192998 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2006-03-25 22:03:49 +00:00
parent 2a0d15e8b9
commit ed6f59a4d7
65 changed files with 207 additions and 306 deletions

View File

@@ -2245,13 +2245,7 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
if (IsInDropDownMode()) {
if (!IgnoreMouseEventForSelection(aMouseEvent)) {
aMouseEvent->PreventDefault();
nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aMouseEvent));
if (nsevent) {
nsevent->PreventCapture();
nsevent->PreventBubble();
}
aMouseEvent->StopPropagation();
} else {
CaptureMouseEvents(PR_FALSE);
return NS_OK;
@@ -2295,14 +2289,7 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
IsOptionDisabled(selectedIndex, isDisabled);
if (isDisabled) {
aMouseEvent->PreventDefault();
nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aMouseEvent));
if (nsevent) {
nsevent->PreventCapture();
nsevent->PreventBubble();
}
aMouseEvent->StopPropagation();
CaptureMouseEvents(PR_FALSE);
return NS_ERROR_FAILURE;
}
@@ -2520,13 +2507,7 @@ nsListControlFrame::MouseDown(nsIDOMEvent* aMouseEvent)
if (IsInDropDownMode()) {
if (!IgnoreMouseEventForSelection(aMouseEvent)) {
aMouseEvent->PreventDefault();
nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aMouseEvent));
if (nsevent) {
nsevent->PreventCapture();
nsevent->PreventBubble();
}
aMouseEvent->StopPropagation();
} else {
return NS_OK;
}