mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 587944. Need to clear are target frame when we clear our target content. r=smaug a=blocking 130078 which blocks
This commit is contained in:
parent
9ef85e39a6
commit
bb88604a6c
@ -3292,6 +3292,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
|
||||
|
||||
//Reset target frame to null to avoid mistargeting after reentrant event
|
||||
mCurrentTarget = nsnull;
|
||||
mCurrentTargetContent = nsnull;
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -3611,6 +3612,7 @@ nsEventStateManager::DispatchMouseEvent(nsGUIEvent* aEvent, PRUint32 aMessage,
|
||||
event.inputSource = static_cast<nsMouseEvent*>(aEvent)->inputSource;
|
||||
|
||||
mCurrentTargetContent = aTargetContent;
|
||||
mCurrentTarget = nsnull;
|
||||
|
||||
nsIFrame* targetFrame = nsnull;
|
||||
if (aTargetContent) {
|
||||
@ -3627,6 +3629,7 @@ nsEventStateManager::DispatchMouseEvent(nsGUIEvent* aEvent, PRUint32 aMessage,
|
||||
}
|
||||
|
||||
mCurrentTargetContent = nsnull;
|
||||
mCurrentTarget = nsnull;
|
||||
|
||||
return targetFrame;
|
||||
}
|
||||
@ -3791,6 +3794,7 @@ nsEventStateManager::GenerateMouseEnterExit(nsGUIEvent* aEvent)
|
||||
|
||||
// reset mCurretTargetContent to what it was
|
||||
mCurrentTargetContent = targetBeforeEvent;
|
||||
mCurrentTarget = nsnull;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user