зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1794800 - Make `HTMLEditor::MoveChildrenWithTransaction` notify last move node result of ignoring caret point suggestion if new move node fails r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D159232
This commit is contained in:
Родитель
98c57d12c0
Коммит
2da57e45a2
|
@ -5457,6 +5457,7 @@ Result<MoveNodeResult, nsresult> HTMLEditor::MoveChildrenWithTransaction(
|
|||
aPreserveWhiteSpaceStyle);
|
||||
if (MOZ_UNLIKELY(moveNodeOrChildrenResult.isErr())) {
|
||||
NS_WARNING("HTMLEditor::MoveNodeOrChildrenWithTransaction() failed");
|
||||
moveChildrenResult.IgnoreCaretPointSuggestion();
|
||||
return moveNodeOrChildrenResult;
|
||||
}
|
||||
moveChildrenResult |= moveNodeOrChildrenResult.inspect();
|
||||
|
|
Загрузка…
Ссылка в новой задаче