зеркало из https://github.com/mozilla/pjs.git
Fix bug 311157, mouseover crashes release builds.
This commit is contained in:
Родитель
2aeb0cca8a
Коммит
90b94622e3
|
@ -845,6 +845,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
nsresult mRet = NS_OK;
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
nsIEventStateManager *mManager;
|
||||
|
@ -853,7 +854,6 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
NS_RELEASE(mManager);
|
||||
}
|
||||
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
aDOMEvent = &mDOMEvent;
|
||||
}
|
||||
|
||||
|
@ -888,6 +888,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
}
|
||||
aDOMEvent = nsnull;
|
||||
}
|
||||
|
||||
return mRet;
|
||||
|
|
|
@ -822,6 +822,7 @@ nsresult GlobalWindowImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
nsresult mRet = NS_OK;
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
nsIEventStateManager *mManager;
|
||||
|
@ -830,7 +831,6 @@ nsresult GlobalWindowImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
NS_RELEASE(mManager);
|
||||
}
|
||||
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
aDOMEvent = &mDOMEvent;
|
||||
}
|
||||
|
||||
|
@ -857,6 +857,7 @@ nsresult GlobalWindowImpl::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
}
|
||||
aDOMEvent = nsnull;
|
||||
}
|
||||
|
||||
return mRet;
|
||||
|
|
|
@ -845,6 +845,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
nsresult mRet = NS_OK;
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
nsIEventStateManager *mManager;
|
||||
|
@ -853,7 +854,6 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
NS_RELEASE(mManager);
|
||||
}
|
||||
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
aDOMEvent = &mDOMEvent;
|
||||
}
|
||||
|
||||
|
@ -888,6 +888,7 @@ nsresult nsDocument::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
}
|
||||
aDOMEvent = nsnull;
|
||||
}
|
||||
|
||||
return mRet;
|
||||
|
|
|
@ -627,6 +627,7 @@ nsresult nsHTMLContent::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
nsEventStatus& aEventStatus)
|
||||
{
|
||||
nsresult mRet = NS_OK;
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
|
||||
if (DOM_EVENT_INIT == aFlags) {
|
||||
nsIEventStateManager *mManager;
|
||||
|
@ -635,7 +636,6 @@ nsresult nsHTMLContent::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
NS_RELEASE(mManager);
|
||||
}
|
||||
|
||||
nsIDOMEvent* mDOMEvent = nsnull;
|
||||
aDOMEvent = &mDOMEvent;
|
||||
}
|
||||
|
||||
|
@ -664,6 +664,7 @@ nsresult nsHTMLContent::HandleDOMEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
}
|
||||
aDOMEvent = nsnull;
|
||||
}
|
||||
|
||||
return mRet;
|
||||
|
|
Загрузка…
Ссылка в новой задаче