Moved ForceDrawFrame from nsComboboxControlFrame to nsFormControlHelper

Removed commented out code in nsFormControlHelper.h.
Modified nsCheckboxControlFrame and nsRadioControlFrame to use ForceDrawFrame
when gfx-rendered.


git-svn-id: svn://10.0.0.236/trunk@19519 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kmcclusk%netscape.com
1999-02-03 18:55:37 +00:00
parent 94c1fefbf7
commit 15091c910a
10 changed files with 67 additions and 887 deletions

View File

@@ -82,6 +82,28 @@ nsFormControlHelper::~nsFormControlHelper()
{
}
void nsFormControlHelper::ForceDrawFrame(nsIFrame * aFrame)
{
if (aFrame == nsnull) {
return;
}
nsRect rect;
nsIView * view;
nsPoint pnt;
aFrame->GetOffsetFromView(pnt, view);
aFrame->GetRect(rect);
rect.x = pnt.x;
rect.y = pnt.y;
if (view != nsnull) {
nsIViewManager * viewMgr;
view->GetViewManager(viewMgr);
if (viewMgr != nsnull) {
viewMgr->UpdateView(view, rect, 0);
NS_RELEASE(viewMgr);
}
}
}
/*nscoord
nsFormControlHelper::GetScrollbarWidth(float aPixToTwip)