Bug 898797 - Use nsHTMLReflowState::ApplyRelativePositioning when placing floats. r=dbaron
This commit is contained in:
@@ -5740,6 +5740,7 @@ nsBlockFrame::ReflowFloat(nsBlockReflowState& aState,
|
||||
const nsRect& aAdjustedAvailableSpace,
|
||||
nsIFrame* aFloat,
|
||||
nsMargin& aFloatMargin,
|
||||
nsMargin& aFloatOffsets,
|
||||
bool aFloatPushedDown,
|
||||
nsReflowStatus& aReflowStatus)
|
||||
{
|
||||
@@ -5830,8 +5831,9 @@ nsBlockFrame::ReflowFloat(nsBlockReflowState& aState,
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Capture the margin information for the caller
|
||||
// Capture the margin and offsets information for the caller
|
||||
aFloatMargin = floatRS.mComputedMargin; // float margins don't collapse
|
||||
aFloatOffsets = floatRS.mComputedOffsets;
|
||||
|
||||
const nsHTMLReflowMetrics& metrics = brc.GetMetrics();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user