crash on abc - calls EnsureColumns upon entering reflow if appropriate

This commit is contained in:
karnaze%netscape.com 1999-11-05 22:33:04 +00:00
parent 0deb880497
commit 2018136f30
2 changed files with 12 additions and 0 deletions

View File

@ -1204,6 +1204,12 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
{
if (nsDebugTable::gRflTable) nsTableFrame::DebugReflow("T::Rfl en", this, &aReflowState, nsnull);
// this is a temporary fix to prevent a recent crash due to incremental content
// sink changes. this will go away when the col cache and cell map are synchronized
if (!IsColumnCacheValid()) {
CacheColFrames(aPresContext, PR_TRUE);
}
// Initialize out parameter
if (nsnull != aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = 0;

View File

@ -1204,6 +1204,12 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext& aPresContext,
{
if (nsDebugTable::gRflTable) nsTableFrame::DebugReflow("T::Rfl en", this, &aReflowState, nsnull);
// this is a temporary fix to prevent a recent crash due to incremental content
// sink changes. this will go away when the col cache and cell map are synchronized
if (!IsColumnCacheValid()) {
CacheColFrames(aPresContext, PR_TRUE);
}
// Initialize out parameter
if (nsnull != aDesiredSize.maxElementSize) {
aDesiredSize.maxElementSize->width = 0;