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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user