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