mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 385058 - "Grey marks (turds, remnants, ghosts) appear on scrollbars" (Redraw whole scrollbar when position changes) [p=mstange@themasta.com (Markus Stange) r+sr=roc a1.9=schrep]
This commit is contained in:
parent
2d72a60803
commit
45b98470a1
@ -658,14 +658,8 @@ nsSliderFrame::CurrentPositionChanged(nsPresContext* aPresContext,
|
||||
// set the rect
|
||||
thumbFrame->SetRect(newThumbRect);
|
||||
|
||||
// Figure out the union of the rect so we know what to redraw.
|
||||
// Combine the old and new thumb overflow areas.
|
||||
nsRect changeRect;
|
||||
changeRect.UnionRect(thumbFrame->GetOverflowRect() + thumbRect.TopLeft(),
|
||||
thumbFrame->GetOverflowRect() + newThumbRect.TopLeft());
|
||||
|
||||
// redraw just the change
|
||||
Invalidate(changeRect, aImmediateRedraw);
|
||||
// Redraw the scrollbar
|
||||
Invalidate(clientRect, aImmediateRedraw);
|
||||
|
||||
if (mScrollbarListener)
|
||||
mScrollbarListener->PositionChanged(aPresContext, mCurPos, curpospx);
|
||||
|
Loading…
Reference in New Issue
Block a user