Bug 1504093 - Make DocumentResizeEventListener::HandleEvent() call public methods of HTMLEditor r=m_kato

DocumentResizeEventListener::HandleEvent() calls protected method,
HTMLEditor::RefreshResizersInternal().  However, this method is an event
handler, i.e., called when the editor is not handling an edit action.

Therefore, for ensuring AutoEditActionDataSetter instance, it should call
public method, nsIHTMLEditor::RefereshResizers() instead.

Differential Revision: https://phabricator.services.mozilla.com/D10706

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Masayuki Nakano 2018-11-05 06:28:53 +00:00
Родитель 46f758b8b5
Коммит f6c59cabb6
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -43,7 +43,6 @@ class nsRange;
namespace mozilla {
class AutoSelectionSetterAfterTableEdit;
class AutoSetTemporaryAncestorLimiter;
class DocumentResizeEventListener;
class EmptyEditableFunctor;
class ResizerSelectionListener;
enum class EditSubAction : int32_t;
@ -2631,7 +2630,6 @@ protected:
friend class AutoSelectionSetterAfterTableEdit;
friend class AutoSetTemporaryAncestorLimiter;
friend class CSSEditUtils;
friend class DocumentResizeEventListener;
friend class EditorBase;
friend class EmptyEditableFunctor;
friend class HTMLEditRules;

Просмотреть файл

@ -57,7 +57,7 @@ DocumentResizeEventListener::HandleEvent(Event* aMouseEvent)
if (!htmlEditor) {
return NS_OK;
}
nsresult rv = htmlEditor->RefreshResizersInternal();
nsresult rv = htmlEditor->RefreshResizers();
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}