зеркало из https://github.com/mozilla/gecko-dev.git
Removed errant conditional which prevented the PresShell from being scrolled to (0,0). bug 52024 r=rods@netscape.com, sr=attinasi@netscape.com a=chofmann@netscape.com
This commit is contained in:
Родитель
9c5107d72a
Коммит
a8b4198338
|
@ -3905,9 +3905,7 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
|
|||
nscoord frameAlignX = frameBounds.x + (frameBounds.width * aHPercent) / 100;
|
||||
scrollOffsetX = frameAlignX - (visibleRect.width * aHPercent) / 100;
|
||||
}
|
||||
if (scrollOffsetX != 0 || scrollOffsetY != 0) {
|
||||
scrollingView->ScrollTo(scrollOffsetX, scrollOffsetY, NS_VMREFRESH_IMMEDIATE);
|
||||
}
|
||||
scrollingView->ScrollTo(scrollOffsetX, scrollOffsetY, NS_VMREFRESH_IMMEDIATE);
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
|
|
|
@ -3905,9 +3905,7 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
|
|||
nscoord frameAlignX = frameBounds.x + (frameBounds.width * aHPercent) / 100;
|
||||
scrollOffsetX = frameAlignX - (visibleRect.width * aHPercent) / 100;
|
||||
}
|
||||
if (scrollOffsetX != 0 || scrollOffsetY != 0) {
|
||||
scrollingView->ScrollTo(scrollOffsetX, scrollOffsetY, NS_VMREFRESH_IMMEDIATE);
|
||||
}
|
||||
scrollingView->ScrollTo(scrollOffsetX, scrollOffsetY, NS_VMREFRESH_IMMEDIATE);
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче