mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Initialize the 2 new fields of the nsSizeEvent (mWinWidth + mWinHeight) before dispatching the event. Fix a crash due to recursive calls in the sample viewer app.
This commit is contained in:
parent
e28082da09
commit
f6071c18d3
@ -816,6 +816,8 @@ PRBool nsWindow::ReportSizeEvent()
|
||||
|
||||
// nsSizeEvent
|
||||
sizeEvent.windowSize = &mBounds;
|
||||
sizeEvent.mWinWidth = mBounds.width;
|
||||
sizeEvent.mWinHeight = mBounds.height;
|
||||
|
||||
// dispatch event
|
||||
return(DispatchWindowEvent(sizeEvent));
|
||||
|
Loading…
Reference in New Issue
Block a user