Fix bug where the DOM event bubbling process was overriding previous event status codes.
git-svn-id: svn://10.0.0.236/trunk@14529 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -589,6 +589,7 @@ nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
|
||||
nsIDOMEvent* domEvent = nsnull;
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
aEventStatus = nsEventStatus_eIgnore;
|
||||
nsIEventStateManager *manager;
|
||||
if (NS_OK == aPresContext.GetEventStateManager(&manager)) {
|
||||
manager->SetEventTarget(mContent);
|
||||
|
||||
@@ -947,11 +947,11 @@ nsGenericElement::HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
PRUint32 aFlags,
|
||||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
aEventStatus = nsEventStatus_eIgnore;
|
||||
nsresult ret = NS_OK;
|
||||
|
||||
nsIDOMEvent* domEvent = nsnull;
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
aEventStatus = nsEventStatus_eIgnore;
|
||||
nsIEventStateManager *manager;
|
||||
if (NS_OK == aPresContext.GetEventStateManager(&manager)) {
|
||||
manager->SetEventTarget(mContent);
|
||||
|
||||
Reference in New Issue
Block a user