зеркало из https://github.com/mozilla/pjs.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:
Родитель
af00f217f9
Коммит
58a61d1f86
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче