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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user