Fixed block's max-element-size computation for child inline frames

git-svn-id: svn://10.0.0.236/trunk@10926 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-09-24 17:47:25 +00:00
parent 1c65627670
commit 8e06d1108f
6 changed files with 36 additions and 30 deletions

View File

@@ -3179,14 +3179,15 @@ nsBlockFrame::PlaceLine(nsBlockReflowState& aState,
}
}
// Update max-element-size
// Update max-element-size
if (aState.mComputeMaxElementSize) {
nsSize& lineMaxElementSize = aState.mMaxElementSize;
if (lineMaxElementSize.width > aState.mMaxElementSize.width) {
aState.mMaxElementSize.width = lineMaxElementSize.width;
const nsSize& kidMaxElementSize = ir.GetMaxElementSize();
if (kidMaxElementSize.width > aState.mMaxElementSize.width) {
aState.mMaxElementSize.width = kidMaxElementSize.width;
}
if (lineMaxElementSize.height > aState.mMaxElementSize.height) {
aState.mMaxElementSize.height = lineMaxElementSize.height;
if (kidMaxElementSize.height > aState.mMaxElementSize.height) {
aState.mMaxElementSize.height = kidMaxElementSize.height;
}
}