Bug 332283, drop indicator not working for trees, r=sr=roc

This commit is contained in:
enndeakin@sympatico.ca 2007-05-30 16:09:56 -07:00
Родитель eb2409dcdd
Коммит 3ba95385fd
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -2761,7 +2761,7 @@ nsTreeBodyFrame::PaintTreeBody(nsIRenderingContext& aRenderingContext,
nsRect dirtyRect;
feedbackRect += aPt;
if (dirtyRect.IntersectRect(aDirtyRect, feedbackRect)) {
PaintDropFeedback(feedbackRect, PresContext(), aRenderingContext, aDirtyRect);
PaintDropFeedback(feedbackRect, PresContext(), aRenderingContext, aDirtyRect, aPt);
}
}
aRenderingContext.PopState();
@ -3598,7 +3598,8 @@ void
nsTreeBodyFrame::PaintDropFeedback(const nsRect& aDropFeedbackRect,
nsPresContext* aPresContext,
nsIRenderingContext& aRenderingContext,
const nsRect& aDirtyRect)
const nsRect& aDirtyRect,
nsPoint aPt)
{
// Paint the drop feedback in between rows.
@ -3611,7 +3612,7 @@ nsTreeBodyFrame::PaintDropFeedback(const nsRect& aDropFeedbackRect,
nsresult rv = primaryCol->GetXInTwips(this, &currX);
NS_ASSERTION(NS_SUCCEEDED(rv), "primary column is invalid?");
currX -= mHorzPosition;
currX += aPt.x - mHorzPosition;
} else {
currX = aDropFeedbackRect.x;
}

Просмотреть файл

@ -216,7 +216,8 @@ protected:
void PaintDropFeedback(const nsRect& aDropFeedbackRect,
nsPresContext* aPresContext,
nsIRenderingContext& aRenderingContext,
const nsRect& aDirtyRect);
const nsRect& aDirtyRect,
nsPoint aPt);
// This method is called with a specific style context and rect to
// paint the background rect as if it were a full-blown frame.