Skip to content

Commit

Permalink
Bug 1451098 Part 2: Update nsView::DoResetWidgetBounds to check for e…
Browse files Browse the repository at this point in the history
…mpty rects returned from CalcWidgetBounds(). r=bz

MozReview-Commit-ID: F9Mkf9Yjf07
  • Loading branch information
bradwerth committed Apr 3, 2018
1 parent 483d117 commit 93e065f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions view/nsView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ void nsView::DoResetWidgetBounds(bool aMoveOnly,
// We're going to hit the early exit below, avoid calling CalcWidgetBounds.
} else {
newBounds = CalcWidgetBounds(type);
invisiblePopup = newBounds.IsEmpty();
}

bool curVisibility = widget->IsVisible();
Expand Down

0 comments on commit 93e065f

Please sign in to comment.