Changed Reflow() to invalidate bounds for an incremental reflow

git-svn-id: svn://10.0.0.236/trunk@39265 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-07-14 15:20:01 +00:00
parent 0cca387880
commit d21da38397
2 changed files with 16 additions and 0 deletions

View File

@@ -2661,6 +2661,14 @@ nsTextFrame::Reflow(nsIPresContext& aPresContext,
mContentOffset = startingOffset;
mContentLength = offset - startingOffset;
// If it's an incremental reflow command, then invalidate our existing
// bounds.
// XXX We need a finer granularity than this, but it isn't clear what
// has actually changed...
if (eReflowReason_Incremental == aReflowState.reason) {
Invalidate(mRect);
}
//go to selection and ask if we are selected here. and where!!
nsReflowStatus rs = (offset == contentLength)

View File

@@ -2661,6 +2661,14 @@ nsTextFrame::Reflow(nsIPresContext& aPresContext,
mContentOffset = startingOffset;
mContentLength = offset - startingOffset;
// If it's an incremental reflow command, then invalidate our existing
// bounds.
// XXX We need a finer granularity than this, but it isn't clear what
// has actually changed...
if (eReflowReason_Incremental == aReflowState.reason) {
Invalidate(mRect);
}
//go to selection and ask if we are selected here. and where!!
nsReflowStatus rs = (offset == contentLength)