bug 84017. Added a StyleReflow to set in the history.. because endobserving document no longer generates this needed reflow for the history/content update for text fields. r=kmcclusk@netscape.com, sr=attinasi

This commit is contained in:
dcone%netscape.com 2001-06-29 05:42:47 +00:00
parent 64deb5cda8
commit 8f32e6b3ba
2 changed files with 36 additions and 0 deletions

View File

@ -2849,6 +2849,21 @@ DocumentViewerImpl::ReflowPrintObject(PrintObject * aPO)
}
}
#ifdef DEBUG_dcone
// Dump all the frames and view to a a file
FILE * fd = fopen("dump.txt", "w");
if (fd) {
nsIFrame *theFrame;
aPO->mPresShell->GetRootFrame(&theFrame);
fprintf(fd, "--------------- Frames ----------------\n");
nsCOMPtr<nsIRenderingContext> renderingContext;
mPrt->mPrintDocDC->CreateRenderingContext(*getter_AddRefs(renderingContext));
DumpFrames(fd, aPO->mPresContext, renderingContext, theFrame, 0);
fclose(fd);
}
#endif
// update the history from the old presentation shell
nsCOMPtr<nsIFrameManager> fm;
rv = aPO->mPresShell->GetFrameManager(getter_AddRefs(fm));
@ -2860,6 +2875,9 @@ DocumentViewerImpl::ReflowPrintObject(PrintObject * aPO)
}
aPO->mPresShell->EndObservingDocument();
// EndObserving document no longer does a reflow.. which history needs.. or we
// get a blank page for text fields. this will reflow.. fixes bug 84017.
aPO->mPresShell->StyleChangeReflow();
return rv;
}

View File

@ -2849,6 +2849,21 @@ DocumentViewerImpl::ReflowPrintObject(PrintObject * aPO)
}
}
#ifdef DEBUG_dcone
// Dump all the frames and view to a a file
FILE * fd = fopen("dump.txt", "w");
if (fd) {
nsIFrame *theFrame;
aPO->mPresShell->GetRootFrame(&theFrame);
fprintf(fd, "--------------- Frames ----------------\n");
nsCOMPtr<nsIRenderingContext> renderingContext;
mPrt->mPrintDocDC->CreateRenderingContext(*getter_AddRefs(renderingContext));
DumpFrames(fd, aPO->mPresContext, renderingContext, theFrame, 0);
fclose(fd);
}
#endif
// update the history from the old presentation shell
nsCOMPtr<nsIFrameManager> fm;
rv = aPO->mPresShell->GetFrameManager(getter_AddRefs(fm));
@ -2860,6 +2875,9 @@ DocumentViewerImpl::ReflowPrintObject(PrintObject * aPO)
}
aPO->mPresShell->EndObservingDocument();
// EndObserving document no longer does a reflow.. which history needs.. or we
// get a blank page for text fields. this will reflow.. fixes bug 84017.
aPO->mPresShell->StyleChangeReflow();
return rv;
}