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

@@ -434,7 +434,7 @@ var nsDragAndDrop = {
// cancel the drag. even if it's not, there's not much
// we can do, so be silent.
}
aEvent.preventBubble();
aEvent.stopPropagation();
},
/**
@@ -462,7 +462,7 @@ var nsDragAndDrop = {
aDragDropObserver.onDragOver(aEvent,
flavourSet.flavourTable[flavour],
this.mDragSession);
aEvent.preventBubble();
aEvent.stopPropagation();
break;
}
}
@@ -495,7 +495,7 @@ var nsDragAndDrop = {
var dropData = multiple ? transferData : transferData.first.first;
aDragDropObserver.onDrop(aEvent, dropData, this.mDragSession);
}
aEvent.preventBubble();
aEvent.stopPropagation();
},
/**

View File

@@ -930,7 +930,7 @@
<xul:spacer class="tabs-right"/>
<xul:hbox hidden="true" anonid="messageClose" class="tabs-closebutton-box"
align="center" pack="end">
<xul:toolbarbutton ondblclick="event.preventBubble();"
<xul:toolbarbutton ondblclick="event.stopPropagation();"
class="tabs-closebutton close-button"
oncommand="this.parentNode.parentNode.hide();"/>
</xul:hbox>

View File

@@ -160,7 +160,7 @@
}
}
}
aEvent.preventBubble();
aEvent.stopPropagation();
]]>
</body>
</method>

View File

@@ -297,19 +297,19 @@
</handler>
<handler event="keypress" keycode="VK_UP" phase="target">
this.checkAdjacentElement(false);
event.preventBubble();
event.stopPropagation();
</handler>
<handler event="keypress" keycode="VK_LEFT" phase="target">
this.checkAdjacentElement(false);
event.preventBubble();
event.stopPropagation();
</handler>
<handler event="keypress" keycode="VK_DOWN" phase="target">
this.checkAdjacentElement(true);
event.preventBubble();
event.stopPropagation();
</handler>
<handler event="keypress" keycode="VK_RIGHT" phase="target">
this.checkAdjacentElement(true);
event.preventBubble();
event.stopPropagation();
</handler>
<!-- set a focused attribute on the selected item when the group

View File

@@ -13,10 +13,10 @@
<binding id="scrollbar-base">
<handlers>
<handler event="contextmenu" preventdefault="true" action="event.preventBubble();"/>
<handler event="click" preventdefault="true" action="event.preventBubble();"/>
<handler event="dblclick" action="event.preventBubble();"/>
<handler event="command" action="event.preventBubble();"/>
<handler event="contextmenu" preventdefault="true" action="event.stopPropagation();"/>
<handler event="click" preventdefault="true" action="event.stopPropagation();"/>
<handler event="dblclick" action="event.stopPropagation();"/>
<handler event="command" action="event.stopPropagation();"/>
</handlers>
</binding>

View File

@@ -45,20 +45,20 @@
</implementation>
<handlers>
<handler event="DOMMouseScroll" action="this.scrollByIndex(event.detail); event.preventBubble();"/>
<handler event="DOMMouseScroll" action="this.scrollByIndex(event.detail); event.stopPropagation();"/>
<handler event="underflow"><![CDATA[
var kids = document.getAnonymousNodes(this);
kids[0].collapsed = true;
kids[2].collapsed = true;
event.preventBubble();
event.stopPropagation();
]]></handler>
<handler event="overflow"><![CDATA[
var kids = document.getAnonymousNodes(this);
kids[0].collapsed = false;
kids[2].collapsed = false;
event.preventBubble();
event.stopPropagation();
]]></handler>
</handlers>
</binding>

View File

@@ -460,7 +460,7 @@
<xul:stack>
<xul:spacer class="tabs-right"/>
<xul:hbox class="tabs-closebutton-box" align="center" pack="end">
<xul:toolbarbutton ondblclick="event.preventBubble();" class="tabs-closebutton close-button" xbl:inherits="disabled=disableclose,oncommand=onclosetab"/>
<xul:toolbarbutton ondblclick="event.stopPropagation();" class="tabs-closebutton close-button" xbl:inherits="disabled=disableclose,oncommand=onclosetab"/>
</xul:hbox>
</xul:stack>
</content>

View File

@@ -2166,7 +2166,7 @@
<parameter name="event"/>
<body>
<![CDATA[
event.preventBubble();
event.stopPropagation();
var tn = document.tooltipNode;
if (tn.localName != "tab")
return false; // Not a tab, so cancel the tooltip

View File

@@ -276,7 +276,7 @@
this.parentNode.firstChild.focus();
this.parentNode._doPopupItemEnabling(this);"
onpopuphiding="this.parentNode._doPopupItemDisabling(this);"
oncommand="var cmd = event.originalTarget.getAttribute('cmd'); if(cmd) { this.parentNode.doCommand(cmd); event.preventBubble(); }">
oncommand="var cmd = event.originalTarget.getAttribute('cmd'); if(cmd) { this.parentNode.doCommand(cmd); event.stopPropagation(); }">
<xul:menuitem label="&spellNoSuggestions.label;" anonid="spell-no-suggestions" disabled="true"/>
<xul:menuseparator anonid="spell-suggestions-separator"/>
<xul:menuitem label="&spellAddToDictionary.label;" accesskey="&spellAddToDictionary.accesskey;" anonid="spell-add-to-dictionary" oncommand="this.parentNode.parentNode.spellui.addToDictionary();"/>

View File

@@ -596,7 +596,7 @@
tree.setAttribute("hidehscroll", "true");
else if (event.detail == 0)
tree.setAttribute("hidevscroll", "true");
event.preventBubble();
event.stopPropagation();
]]>
</handler>
<handler event="overflow">
@@ -606,7 +606,7 @@
tree.removeAttribute("hidehscroll");
else if (event.detail == 0)
tree.removeAttribute("hidevscroll");
event.preventBubble();
event.stopPropagation();
]]>
</handler>
</handlers>
@@ -891,7 +891,7 @@
<parameter name="aEvent"/>
<body><![CDATA[
// prevent click event from firing after column drag and drop
aEvent.preventBubble();
aEvent.stopPropagation();
aEvent.preventDefault();
]]></body>
</method>