mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 51576: Fix a crash when resizing browser to zero height or width for frameset pages; Fix thanks to tobias.weibel@gmx.net; r=self, jst, vidur
This commit is contained in:
parent
6f858a7d0d
commit
54719150b3
@ -959,8 +959,12 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext* aPresContext,
|
||||
// only borders between <frame>s. There are none on the edges (e.g the
|
||||
// leftmost <frame> has no left border).
|
||||
PRInt32 borderWidth = GetBorderWidth(aPresContext);
|
||||
|
||||
width -= (mNumCols - 1) * borderWidth;
|
||||
if (width < 0) width = 0;
|
||||
|
||||
height -= (mNumRows - 1) * borderWidth;
|
||||
if (height < 0) height = 0;
|
||||
|
||||
if (!mDrag.mActive && ( (firstTime) ||
|
||||
( (mRect.width != 0) && (mRect.height != 0) &&
|
||||
|
@ -959,8 +959,12 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext* aPresContext,
|
||||
// only borders between <frame>s. There are none on the edges (e.g the
|
||||
// leftmost <frame> has no left border).
|
||||
PRInt32 borderWidth = GetBorderWidth(aPresContext);
|
||||
|
||||
width -= (mNumCols - 1) * borderWidth;
|
||||
if (width < 0) width = 0;
|
||||
|
||||
height -= (mNumRows - 1) * borderWidth;
|
||||
if (height < 0) height = 0;
|
||||
|
||||
if (!mDrag.mActive && ( (firstTime) ||
|
||||
( (mRect.width != 0) && (mRect.height != 0) &&
|
||||
|
Loading…
Reference in New Issue
Block a user