Fix more bustage. Bug 243370

This commit is contained in:
bzbarsky%mit.edu 2007-01-08 03:56:06 +00:00
parent 4ac9c92340
commit afe57a7654
2 changed files with 6 additions and 2 deletions

View File

@ -477,7 +477,9 @@ nsImageBoxFrame::GetPrefSize(nsBoxLayoutState& aState)
AddInset(size);
nsIBox::AddCSSPrefSize(aState, this, size);
BoundsCheck(GetMinSize(aState), size, GetMaxSize(aState));
nsSize minSize = GetMinSize(aState);
nsSize maxSize = GetMaxSize(aState);
BoundsCheck(minSize, size, maxSize);
return size;
}

View File

@ -304,7 +304,9 @@ nsLeafBoxFrame::Reflow(nsPresContext* aPresContext,
// if we are told to layout intrinic then get our preferred size.
if (computedSize.width == NS_INTRINSICSIZE || computedSize.height == NS_INTRINSICSIZE) {
prefSize = GetPrefSize(state);
BoundsCheck(GetMinSize(state), prefSize, GetMaxSize(state));
nsSize minSize = GetMinSize(state);
nsSize maxSize = GetMaxSize(state);
BoundsCheck(minSize, prefSize, maxSize);
}
// get our desiredSize