зеркало из https://github.com/mozilla/gecko-dev.git
Bug 290673. Restore event->point after dispatching to views, in case someone wants to use it later (Windows widget appears to). r+sr=bzbarsky,a=asa
This commit is contained in:
Родитель
84b0577142
Коммит
e9008d4b37
|
@ -2512,6 +2512,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
|
|||
// we'll crash in the next iteration. Oh well. The old code would have crashed too.
|
||||
}
|
||||
}
|
||||
// Need to restore the event point here because someone may use it later.
|
||||
// In particular Windows seems to need this.
|
||||
aEvent->point = pt;
|
||||
|
||||
PL_FreeArenaPool(&displayArena);
|
||||
PL_FinishArenaPool(&displayArena);
|
||||
|
|
Загрузка…
Ссылка в новой задаче