Removed compact margin hackery

This commit is contained in:
kipp%netscape.com 1999-03-31 04:10:51 +00:00
Родитель 928bd4aed8
Коммит c2ce4ffb18
4 изменённых файлов: 2 добавлений и 16 удалений

Просмотреть файл

@ -44,7 +44,6 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext& aPresContext,
mOuterReflowState(aParentRS),
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull)
{
mCompactMarginWidth = 0;
mStyleSpacing = nsnull;
#ifdef DEBUG
mIndent = 0;
@ -159,7 +158,6 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
availSpace, reason);
aComputedOffsets = reflowState.computedOffsets;
reflowState.lineLayout = nsnull;
reflowState.mCompactMarginWidth = mCompactMarginWidth;
if (!aIsAdjacentWithTop) {
reflowState.isTopOfPage = PR_FALSE; // make sure this is cleared
}
@ -410,7 +408,7 @@ nsBlockReflowContext::PlaceBlock(PRBool aForceFit,
// Collapse the bottom margin with the top margin that was already
// applied.
nscoord newBottomMargin = MaxMargin(collapsedBottomMargin, mTopMargin);
*aBottomMarginResult = collapsedBottomMargin;
*aBottomMarginResult = newBottomMargin;
}
// Empty blocks do not have anything special done to them and they

Просмотреть файл

@ -38,10 +38,6 @@ public:
PRBool aComputeMaxElementSize);
~nsBlockReflowContext() { }
void SetCompactMarginWidth(nscoord aCompactMarginWidth) {
mCompactMarginWidth = aCompactMarginWidth;
}
void SetNextRCFrame(nsIFrame* aNextRCFrame) {
mNextRCFrame = aNextRCFrame;
}
@ -107,7 +103,6 @@ protected:
const nsHTMLReflowState& mOuterReflowState;
nsIFrame* mFrame;
nscoord mCompactMarginWidth;
nsRect mSpace;
nsIFrame* mNextRCFrame;

Просмотреть файл

@ -44,7 +44,6 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext& aPresContext,
mOuterReflowState(aParentRS),
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull)
{
mCompactMarginWidth = 0;
mStyleSpacing = nsnull;
#ifdef DEBUG
mIndent = 0;
@ -159,7 +158,6 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
availSpace, reason);
aComputedOffsets = reflowState.computedOffsets;
reflowState.lineLayout = nsnull;
reflowState.mCompactMarginWidth = mCompactMarginWidth;
if (!aIsAdjacentWithTop) {
reflowState.isTopOfPage = PR_FALSE; // make sure this is cleared
}
@ -410,7 +408,7 @@ nsBlockReflowContext::PlaceBlock(PRBool aForceFit,
// Collapse the bottom margin with the top margin that was already
// applied.
nscoord newBottomMargin = MaxMargin(collapsedBottomMargin, mTopMargin);
*aBottomMarginResult = collapsedBottomMargin;
*aBottomMarginResult = newBottomMargin;
}
// Empty blocks do not have anything special done to them and they

Просмотреть файл

@ -38,10 +38,6 @@ public:
PRBool aComputeMaxElementSize);
~nsBlockReflowContext() { }
void SetCompactMarginWidth(nscoord aCompactMarginWidth) {
mCompactMarginWidth = aCompactMarginWidth;
}
void SetNextRCFrame(nsIFrame* aNextRCFrame) {
mNextRCFrame = aNextRCFrame;
}
@ -107,7 +103,6 @@ protected:
const nsHTMLReflowState& mOuterReflowState;
nsIFrame* mFrame;
nscoord mCompactMarginWidth;
nsRect mSpace;
nsIFrame* mNextRCFrame;