mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 548792. Fix rect coordinate adjustment. r=mats
This commit is contained in:
parent
53eab1994a
commit
fc7df512e2
@ -4101,7 +4101,9 @@ PresShell::ScrollFrameRectIntoView(nsIFrame* aFrame,
|
||||
ScrollToShowRect(sf, rect - sf->GetScrolledFrame()->GetPosition(),
|
||||
aVPercent, aHPercent, aFlags);
|
||||
nsPoint newPosition = sf->GetScrollPosition();
|
||||
rect += newPosition - oldPosition;
|
||||
// If the scroll position increased, that means our content moved up,
|
||||
// so our rect's offset should decrease
|
||||
rect += oldPosition - newPosition;
|
||||
|
||||
if (oldPosition != newPosition) {
|
||||
didScroll = PR_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user