Fixing Mac bustage.

git-svn-id: svn://10.0.0.236/trunk@195413 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2006-04-26 02:12:10 +00:00
parent 02b50c231a
commit 7a1ec5ab7e

View File

@ -3426,7 +3426,9 @@ nsresult nsTreeBodyFrame::ScrollToRowInternal(const ScrollParts& aParts, PRInt32
// grab the scroll widget and make it paint synchronously. This is
// sorta slow (having to paint the entire tree), but it works.
if (mSlots && mSlots->mDragSession && aParts.mVScrollbar) {
nsIWidget* scrollWidget = aParts.mVScrollbar->GetWindow();
nsIFrame* frame;
CallQueryInterface(aParts.mVScrollbar, &frame);
nsIWidget* scrollWidget = frame->GetWindow();
if (scrollWidget)
scrollWidget->Invalidate(PR_TRUE);
}