Skip to content

Commit

Permalink
[embedlite] Set surface size for compositor bridge parent. JB#49551
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed May 5, 2020
1 parent 4d7b4a8 commit 5fcaafd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions embedding/embedlite/embedshared/nsWindow.cpp
Expand Up @@ -125,13 +125,10 @@ NS_IMETHODIMP
nsWindow::Resize(double aWidth, double aHeight, bool aRepaint)
{
Unused << PuppetWidgetBase::Resize(aWidth, aHeight, aRepaint);
// Looks that we need CompositorSession
#if 0
if (mCompositorParent) {
static_cast<EmbedLiteCompositorBridgeParent*>(mCompositorParent.get())->
if (GetCompositorBridgeParent()) {
static_cast<EmbedLiteCompositorBridgeParent*>(GetCompositorBridgeParent())->
SetSurfaceSize(mNaturalBounds.width, mNaturalBounds.height);
}
#endif

return NS_OK;
}
Expand Down

0 comments on commit 5fcaafd

Please sign in to comment.