mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
83f155f075
nsFrameSelection::CommonPageMove() is called only by nsTextInputSelectionImpl::PageMove() and PresShell::PageMove(). So, this is the only implementation of (Shift+) PageDown and (Shift+) PageUp. This scrolls down/up the specific frame. However, this allows to scroll outside of selection limiter, for example, even when an editing host is focused, its parent scrollable element may be scrolled. This is same behavior as Blink so that we should keep this behavior. However, it also emulates to click same position after scroll and this behavior is different from Blink. At this time, it does not check selection limiter and then, nsFrameSelection::HandleClick() may reset selection limiter the scrolled frame is a parent frame of the limiter. Therefore, this patch makes it check if the scrolled frame is a parent of the limiter, and if so, use result of GetFrameToPageSelect() to emulate a click instead. The result won't be a parent of the limiter because it is used when handling Shift + PageDown and Shift + PageUp which are always handled in the limiter. Differential Revision: https://phabricator.services.mozilla.com/D13202 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |