forked from mirrors/gecko-dev
Bug 1905253 - Add a null-check in AppWindow::MoveResize. r=smaug, a=RyanVM
Much like the method we forward to. Differential Revision: https://phabricator.services.mozilla.com/D216580
This commit is contained in:
parent
ff5baf3e9e
commit
8fbfa7ec66
1 changed files with 1 additions and 1 deletions
|
|
@ -760,8 +760,8 @@ AppWindow::GetDimensions(DimensionKind aDimensionKind, int32_t* aX, int32_t* aY,
|
|||
nsresult AppWindow::MoveResize(const Maybe<LayoutDeviceIntPoint>& aPosition,
|
||||
const Maybe<LayoutDeviceIntSize>& aSize,
|
||||
bool aRepaint) {
|
||||
NS_ENSURE_STATE(mWindow);
|
||||
DesktopToLayoutDeviceScale scale = mWindow->GetDesktopToDeviceScale();
|
||||
|
||||
return MoveResize(aPosition ? Some(*aPosition / scale) : Nothing(),
|
||||
aSize ? Some(*aSize / scale) : Nothing(), aRepaint);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue