From 598cd8d192caa6f8b35b8d185a289ea80a5be0e7 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Tue, 16 Mar 1999 00:08:38 +0000 Subject: [PATCH] I am "unfixing" something. This was something I introduced to prevent an M3 bug with a hack, it is not necessary anymore. reviewd by sfrasier. several people have verified this. git-svn-id: svn://10.0.0.236/trunk@24191 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrame.cpp | 8 ++++---- mozilla/layout/html/base/src/nsFrame.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/layout/generic/nsFrame.cpp b/mozilla/layout/generic/nsFrame.cpp index d261af6d0e9..346e7a44e47 100644 --- a/mozilla/layout/generic/nsFrame.cpp +++ b/mozilla/layout/generic/nsFrame.cpp @@ -1511,7 +1511,7 @@ nsFrame::SetSelected(nsSelectionStruct *aSelStruct) { mSelected = aSelStruct->mType & nsSelectionStruct::SELON ; - nsRect rect; +/* nsRect rect; GetRect(rect); nsIFrame *frame = this; nsIFrame *firstframe = nsnull; @@ -1524,9 +1524,9 @@ nsFrame::SetSelected(nsSelectionStruct *aSelStruct) firstframe->GetRect(rect2); rect.y-= rect.y-rect2.y; } - - //ForceDrawFrame(this);//invalidate does not work in all cases. - Invalidate(rect,PR_FALSE); //false is for not immediate +*/ + ForceDrawFrame(this);//invalidate does not work in all cases. + //Invalidate(rect,PR_FALSE); //false is for not immediate } return NS_OK; } diff --git a/mozilla/layout/html/base/src/nsFrame.cpp b/mozilla/layout/html/base/src/nsFrame.cpp index d261af6d0e9..346e7a44e47 100644 --- a/mozilla/layout/html/base/src/nsFrame.cpp +++ b/mozilla/layout/html/base/src/nsFrame.cpp @@ -1511,7 +1511,7 @@ nsFrame::SetSelected(nsSelectionStruct *aSelStruct) { mSelected = aSelStruct->mType & nsSelectionStruct::SELON ; - nsRect rect; +/* nsRect rect; GetRect(rect); nsIFrame *frame = this; nsIFrame *firstframe = nsnull; @@ -1524,9 +1524,9 @@ nsFrame::SetSelected(nsSelectionStruct *aSelStruct) firstframe->GetRect(rect2); rect.y-= rect.y-rect2.y; } - - //ForceDrawFrame(this);//invalidate does not work in all cases. - Invalidate(rect,PR_FALSE); //false is for not immediate +*/ + ForceDrawFrame(this);//invalidate does not work in all cases. + //Invalidate(rect,PR_FALSE); //false is for not immediate } return NS_OK; }