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
parent 12de539ec7
commit 44793caa0f
2 changed files with 6 additions and 4 deletions

View File

@ -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;
}

View File

@ -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.