mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
b=25245 Changed ComputeContainingBlockRectangle() to set the containing
block width to NS_UNCONSTRAINEDSIZE if it is an unconstrained reflow. This way percentage based widths are treated properly
This commit is contained in:
parent
3b23873b58
commit
6476da726e
@ -828,6 +828,13 @@ nsHTMLReflowState::ComputeContainingBlockRectangle(const nsHTMLReflowState* aCon
|
||||
aContainingBlockHeight += aContainingBlockRS->mComputedPadding.top +
|
||||
aContainingBlockRS->mComputedPadding.bottom;
|
||||
}
|
||||
} else {
|
||||
// If this is an unconstrained reflow, then reset the containing block
|
||||
// width to NS_UNCONSTRAINEDSIZE. This way percentage based values have
|
||||
// no effect
|
||||
if (NS_UNCONSTRAINEDSIZE == availableWidth) {
|
||||
aContainingBlockWidth = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -828,6 +828,13 @@ nsHTMLReflowState::ComputeContainingBlockRectangle(const nsHTMLReflowState* aCon
|
||||
aContainingBlockHeight += aContainingBlockRS->mComputedPadding.top +
|
||||
aContainingBlockRS->mComputedPadding.bottom;
|
||||
}
|
||||
} else {
|
||||
// If this is an unconstrained reflow, then reset the containing block
|
||||
// width to NS_UNCONSTRAINEDSIZE. This way percentage based values have
|
||||
// no effect
|
||||
if (NS_UNCONSTRAINEDSIZE == availableWidth) {
|
||||
aContainingBlockWidth = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user