mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 708553 - Reset nsEventStateManager's hover state when we detach from nsPresContext. r=bz
This commit is contained in:
parent
d86dde1344
commit
be755c5712
@ -3540,6 +3540,13 @@ void
|
||||
nsEventStateManager::NotifyDestroyPresContext(nsPresContext* aPresContext)
|
||||
{
|
||||
nsIMEStateManager::OnDestroyPresContext(aPresContext);
|
||||
if (mHoverContent) {
|
||||
// Bug 70855: Presentation is going away, possibly for a reframe.
|
||||
// Reset the hover state so that if we're recreating the presentation,
|
||||
// we won't have the old hover state still set in the new presentation,
|
||||
// as if the new presentation is resized, a new element may be hovered.
|
||||
SetContentState(nsnull, NS_EVENT_STATE_HOVER);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user