mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix more bustage. Bug 243370
This commit is contained in:
parent
4ac9c92340
commit
afe57a7654
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user