From 5aba9625c77ada9db0ff64321e8e8e1e9549218a Mon Sep 17 00:00:00 2001 From: "mozilla.mano@sent.com" Date: Fri, 4 Jan 2008 16:21:25 -0800 Subject: [PATCH] Bug 407449 - After an unsuccessful drag&drop action multiple folders/bookmarks can be highlighted in Places Organizer. r=enn, sr=roc. --- .../xul/base/src/tree/src/nsTreeBodyFrame.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp index 95cacf4e29cb..2f21b4bd5b1e 100644 --- a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp +++ b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp @@ -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; }