mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
7a894386f2
Currently, `nsFrameSelection::CommonPageMove()` is called before every caller calls `nsFrameSelection::ScrollSelectionIntoView()`. However, when an editing host has focus, the scroll target may be outside of it. In such case, without moving caret, user may want only to scroll the scrollable element. Chrome behaves like so. Chrome also can scroll outside scrollable element of focused editing host. However, it scrolls caret into view only when caret is moved actually. Therefore, it makes sense to follow this behavior. This patch makes `nsFrameSelection::CommonPageMove()` also call `nsFrameSelection::ScrollSelectionIntoView()`. However, it newly takes `SelectionIntoView` flag for making callers can choose the condition. I.e., `ScrollSelectionIntoView()` should be called always, or only when selection is actually changed, or shouldn't be called. Differential Revision: https://phabricator.services.mozilla.com/D50178 --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 |