mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 332283, drop indicator not working for trees, r=sr=roc
This commit is contained in:
parent
12de539ec7
commit
44793caa0f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user