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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user