Compute correct Y coordinate after clear floaters; fixed bullet positioning bug when placing a bullet next to a block frame that has a carried-out top margin

This commit is contained in:
kipp@netscape.com
1998-12-11 22:26:45 +00:00
parent dea9635d9d
commit 2eb034d1f1
6 changed files with 18 additions and 12 deletions

View File

@@ -2291,7 +2291,8 @@ nsBaseIBFrame::ReflowBlockFrame(nsBlockReflowState& aState,
PostPlaceLine(aState, aLine, brc.GetMaxElementSize());
// Notify anyone who cares that the line has been placed
DidPlaceLine(aState, aLine, brc.GetCollapsedTopMargin(),
DidPlaceLine(aState, aLine,
applyTopMargin ? brc.GetCollapsedTopMargin() : 0,
brc.GetCollapsedBottomMargin(), aKeepReflowGoing);
}
else {
@@ -3675,7 +3676,7 @@ nsBlockReflowState::ClearFloaters(nscoord aY, PRUint8 aBreakType)
nscoord newY = mCurrentBand.ClearFloaters(aY - mBorderPadding.top,
aBreakType);
mY = newY;
mY = newY + mBorderPadding.top;
GetAvailableSpace();
#ifdef NOISY_INCREMENTAL_REFLOW