fixed bugs 26952, 30944, 36022

r=troy
This commit is contained in:
buster%netscape.com 2000-05-09 05:08:02 +00:00
Родитель bc9197fc27
Коммит a57c2f071c
2 изменённых файлов: 18 добавлений и 2 удалений

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

@ -51,7 +51,9 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext* aPresContext,
mOuterReflowState(aParentRS),
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull),
mMaxElementSize(0, 0),
mComputeMaximumWidth(aComputeMaximumWidth)
mIsTable(PR_FALSE),
mComputeMaximumWidth(aComputeMaximumWidth),
mBlockShouldInvalidateItself(PR_FALSE)
{
mStyleSpacing = nsnull;
}
@ -292,6 +294,12 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
reason = eReflowReason_Dirty;
}
}
if (eReflowReason_Resize == reason) {
// we're doing a resize reflow, even though our outer reflow state is incremental
// text (and possibly other objects) don't do incremental painting for resize reflows
// so, we have to handle the invalidation for repainting ourselves
mBlockShouldInvalidateItself = PR_TRUE;
}
}
}

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

@ -51,7 +51,9 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext* aPresContext,
mOuterReflowState(aParentRS),
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull),
mMaxElementSize(0, 0),
mComputeMaximumWidth(aComputeMaximumWidth)
mIsTable(PR_FALSE),
mComputeMaximumWidth(aComputeMaximumWidth),
mBlockShouldInvalidateItself(PR_FALSE)
{
mStyleSpacing = nsnull;
}
@ -292,6 +294,12 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
reason = eReflowReason_Dirty;
}
}
if (eReflowReason_Resize == reason) {
// we're doing a resize reflow, even though our outer reflow state is incremental
// text (and possibly other objects) don't do incremental painting for resize reflows
// so, we have to handle the invalidation for repainting ourselves
mBlockShouldInvalidateItself = PR_TRUE;
}
}
}