mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
5365ff4dde
When asked to scroll a 1,1 appunit rectangle into view, ScrollFrameRectIntoView will now actually succeed! For example if the window is 6000 appunits high and we ask to scroll a 1x1 rect at 0,6000 into view, before bug 681192 was fixed we'd actually fail to do so. We'd compute a desired scroll destination of 0,1, and ScrollTo would round that to 0,0 and we wouldn't scroll at all. Now, we compute a desired scroll destination of 0,1 but also an allowed scroll range for y of "1 to <someting large>", so ScrollFrameRectIntoView will scroll down by a full pixel to 0,60. This is correct --- it gets the subpixel area into view, which the previous code didn't --- but it's not really what DoAutoScroll wants, at least the way test_mousecapture.xul is written. test_mousecapture.xul expects DoAutoScroll to scroll windowheight+N into view by scrolling down by exactly N pixels, so the desired point is exactly at the bottom edge of the window rect. Using a zero-sized rect achieves this. --HG-- extra : rebase_source : 5d3d8cc4417c35dc88ad296a4f13e01d2c1c9233 |
||
---|---|---|
.. | ||
analysis | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
Makefile.in |