mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
e61b4bc007
Currently, `nsISelectionDisplay::DISPLAY_ALL` is used only by `HTMLEditor`. And only when it's set, `nsImageFrame::ShouldDisplaySelection()` returns `false` if only its `mContent` is selected. However, this is based on an assumption, that is, when only one `<img>` is selected in an HTML editor, it's target of resizers. However, this is completely wrong. Web apps can disable resizers with `document.execCommand("enableObjectResizing", false, false)` and now, it's disabled by default. Therefore, this patch makes the method check whether its `mContent` is target of resizers at the moment. Differential Revision: https://phabricator.services.mozilla.com/D32449 --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 |