Skip to content

Commit

Permalink
Don't recalculate viewport for wrong presShell
Browse files Browse the repository at this point in the history
  • Loading branch information
rojkov committed Jun 16, 2014
1 parent bdcea94 commit 1d22249
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions embedding/embedlite/embedthread/EmbedLiteViewThreadChild.cpp
Expand Up @@ -587,8 +587,10 @@ EmbedLiteViewThreadChild::RecvUpdateFrame(const FrameMetrics& aFrameMetrics)
return true;
}


if (mViewResized && mHelper->HandlePossibleViewportChange()) {
if (mViewResized &&
aFrameMetrics.mIsRoot &&
mHelper->mLastRootMetrics.mPresShellId == aFrameMetrics.mPresShellId &&
mHelper->HandlePossibleViewportChange()) {
mViewResized = false;
}

Expand Down

0 comments on commit 1d22249

Please sign in to comment.