зеркало из https://github.com/mozilla/gecko-dev.git
Fix Windows regression (view for paints can vary across platforms). b=227361 r+sr=roc
This commit is contained in:
Родитель
92c70b57d7
Коммит
206bc914fa
|
@ -1857,9 +1857,8 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
|
|||
if (mRefreshEnabled) {
|
||||
// If an ancestor widget was hidden and then shown, we could
|
||||
// have a delayed resize to handle.
|
||||
if (view == mRootView &&
|
||||
mDelayedResize != nsSize(NSCOORD_NONE, NSCOORD_NONE) &&
|
||||
IsViewVisible(view)) {
|
||||
if (mDelayedResize != nsSize(NSCOORD_NONE, NSCOORD_NONE) &&
|
||||
IsViewVisible(mRootView)) {
|
||||
DoSetWindowDimensions(mDelayedResize.width, mDelayedResize.height);
|
||||
mDelayedResize.SizeTo(NSCOORD_NONE, NSCOORD_NONE);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче