зеркало из https://github.com/mozilla/gecko-dev.git
121e90ba98
Currently, `HTMLEditor::GetSelectedElement()` is not used in mozilla-central and mainly used for handling double clicks in the editor with its complicated path. In most cases, users don't want double clicks to cause showing property dialog in mail composer. Therefore, we must be able to stricter in the complicated path. This patch adds new check whether the selected range ends immediately before a `<br>` element. If it's end at a `<br>` element, we shouldn't treat found element as selected. Note that when `<a href="...">` element is double-clicked, the element itself is selected like `<img>` element. So, we don't need to worry about the case which is that users probably want to update a link with double-clicking since such case is handled by the first optimized path in the method. Differential Revision: https://phabricator.services.mozilla.com/D34335 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |