зеркало из https://github.com/mozilla/pjs.git
Fix more bustage. Bug 243370
This commit is contained in:
Родитель
8180865db3
Коммит
69d18b8701
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче