Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Provide old screen size when tab helper expects it
  • Loading branch information
rojkov committed Dec 2, 2014
1 parent a2b2199 commit be34778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -512,7 +512,6 @@ EmbedLiteViewThreadChild::RecvSetViewSize(const gfxSize& aSize)
return true;
}

mHelper->mInnerSize = ScreenIntSize::FromUnknownSize(gfx::IntSize(aSize.width, aSize.height));
mWidget->Resize(0, 0, aSize.width, aSize.height, true);
nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(mWebBrowser);
baseWindow->SetPositionAndSize(0, 0, mViewSize.width, mViewSize.height, true);
Expand Down
5 changes: 4 additions & 1 deletion embedding/embedlite/utils/TabChildHelper.cpp
Expand Up @@ -501,5 +501,8 @@ TabChildHelper::ReportSizeUpdate(const gfxSize& aSize)
mHasValidInnerSize = true;
}

HandlePossibleViewportChange(mInnerSize);
ScreenIntSize oldScreenSize(mInnerSize);
mInnerSize = ScreenIntSize::FromUnknownSize(gfx::IntSize(aSize.width, aSize.height));

HandlePossibleViewportChange(oldScreenSize);
}

0 comments on commit be34778

Please sign in to comment.