Bug 383010 - Visual glitches while scrolling pages with position:fixed elements, patch by Stephen Moehle, r+sr=roc

This commit is contained in:
martijn.martijn@gmail.com 2007-06-05 02:39:54 -07:00
parent ef769fe157
commit 2222214a4b

View File

@ -594,11 +594,12 @@ void nsScrollPortView::Scroll(nsView *aScrolledView, nsPoint aTwipsDelta, nsPoin
biggestRect = *r;
}
}
toScrollPtr = &toScroll;
biggestRect.ScaleRoundIn(1.0/aP2A);
toScroll = biggestRect;
biggestRect *= aP2A;
regionToScroll.Sub(regionToScroll, biggestRect);
updateRegion.Or(updateRegion, regionToScroll);
toScrollPtr = &toScroll;
toScroll = biggestRect;
toScroll.ScaleRoundOut(1.0/aP2A);
}
#endif