From d21da383977505c6b0bd5546a2ba6c21083e94cc Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Wed, 14 Jul 1999 15:20:01 +0000 Subject: [PATCH] Changed Reflow() to invalidate bounds for an incremental reflow git-svn-id: svn://10.0.0.236/trunk@39265 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsTextFrame.cpp | 8 ++++++++ mozilla/layout/html/base/src/nsTextFrame.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index 77357101ec1..4146f3e3cf4 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -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) diff --git a/mozilla/layout/html/base/src/nsTextFrame.cpp b/mozilla/layout/html/base/src/nsTextFrame.cpp index 77357101ec1..4146f3e3cf4 100644 --- a/mozilla/layout/html/base/src/nsTextFrame.cpp +++ b/mozilla/layout/html/base/src/nsTextFrame.cpp @@ -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)