зеркало из https://github.com/mozilla/pjs.git
Don't switch a constrained height to an unconstrained one due to infinite clearance. Fixes layout/reftests/bugs/563584-10b.html . (Bug 563584, patch 29) r=roc
This commit is contained in:
Родитель
3388e1f4ac
Коммит
df4edf9f5e
|
@ -3087,6 +3087,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
|
|||
availSpace.y -= topMargin;
|
||||
if (NS_UNCONSTRAINEDSIZE != availSpace.height) {
|
||||
availSpace.height += topMargin;
|
||||
|
||||
// When there is a pushed float, clearance could equal
|
||||
// NS_UNCONSTRAINEDSIZE (FIXME: is that really a good idea?), but
|
||||
// we don't want that to change a constrained height to an
|
||||
// unconstrained one.
|
||||
if (NS_UNCONSTRAINEDSIZE == availSpace.height) {
|
||||
--availSpace.height;
|
||||
}
|
||||
}
|
||||
|
||||
// Reflow the block into the available space
|
||||
|
|
Загрузка…
Ссылка в новой задаче