mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00

HTMLEditor::GetFirstSelectedCell() is an XPCOM method, but used internally a lot. Therefore, we should create a non-virtual method for internal use. This patch creates HTMLEditor::GetFirstSelectedTableCellElement(), and it won't return NS_SUCCESS_EDITOR_ELEMENT_NOT_FOUND since nobody needs the value. It's enough to check whether the result is nullptr without error for any callers. Differential Revision: https://phabricator.services.mozilla.com/D4060 --HG-- extra : moz-landing-system : lando