зеркало из https://github.com/mozilla/gecko-dev.git
9c349ade9b
AccessibleCaretEventHub is an nsISelectionListener of Selection whose type is "normal". This is added only when nsFrameSelection::Init() is called and accessible caret is enabled. Additionally, nsFrameSelection::Init() is always called immediately after creating nsFrameSelection. Therefore, when AccessibleCaretEventHub is installed to Selection, this is always second selection listener and won't be installed multiple times. So, Selection can store pointer of AccessibleCaretEventHub directly only when it's enabled and the Selection needs to notify it of selection change. This patch makes Selection stores AccessibleCaretEventHub with RefPtr, then, makes Selection::NotifySelectionListeners() call its OnSelectionChange() immediately after AutoCopyListener. Unfortunately, this patch includes making of MOZ_CAN_RUN_SCRIPT_BOUNDARY and MOZ_CAN_RUN_SCRIPT a lot since some methods of AccessibleCaretEventHub are marked as MOZ_CAN_RUN_SCRIPT and including AccessibleCaretEventHub.h into Selection.h causes compile the compile errors. Differential Revision: https://phabricator.services.mozilla.com/D4733 --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 |