зеркало из https://github.com/mozilla/gecko-dev.git
Bug 407449 - After an unsuccessful drag&drop action multiple folders/bookmarks can be highlighted in Places Organizer. r=enn, sr=roc.
This commit is contained in:
Родитель
f0f4a78cce
Коммит
5aba9625c7
|
@ -685,13 +685,7 @@ nsTreeBodyFrame::InvalidateRow(PRInt32 aIndex)
|
|||
return NS_OK;
|
||||
|
||||
nsRect rowRect(mInnerBox.x, mInnerBox.y+mRowHeight*aIndex, mInnerBox.width, mRowHeight);
|
||||
#ifdef XP_MACOSX
|
||||
// Mac can't process the event loop during a drag, so if we're dragging,
|
||||
// invalidate synchronously.
|
||||
nsLeafBoxFrame::Invalidate(rowRect, mSlots && mSlots->mDragSession ? PR_TRUE : PR_FALSE);
|
||||
#else
|
||||
nsLeafBoxFrame::Invalidate(rowRect, PR_FALSE);
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -3908,19 +3902,6 @@ nsresult nsTreeBodyFrame::ScrollToRowInternal(const ScrollParts& aParts, PRInt32
|
|||
{
|
||||
ScrollInternal(aParts, aRow);
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// mac can't process the event loop during a drag, so if we're dragging,
|
||||
// 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) {
|
||||
nsIFrame* frame;
|
||||
CallQueryInterface(aParts.mVScrollbar, &frame);
|
||||
nsIWidget* scrollWidget = frame->GetWindow();
|
||||
if (scrollWidget)
|
||||
scrollWidget->Invalidate(PR_TRUE);
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче