Bug 1599843 - Document::SetEditingState is infallible. r=masayuki

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-11-28 12:21:23 +00:00
parent 8f0845aadf
commit 389deb958b
2 changed files with 1 additions and 6 deletions

View File

@ -5064,11 +5064,6 @@ static bool HasPresShell(nsPIDOMWindowOuter* aWindow) {
return docShell->GetPresShell() != nullptr;
}
nsresult Document::SetEditingState(EditingState aState) {
mEditingState = aState;
return NS_OK;
}
nsresult Document::EditingStateChanged() {
if (mRemovedFromDocShell) {
return NS_OK;

View File

@ -1794,7 +1794,7 @@ class Document : public nsINode,
* to enable/disable editing, call EditingStateChanged() or
* SetDesignMode().
*/
nsresult SetEditingState(EditingState aState);
void SetEditingState(EditingState aState) { mEditingState = aState; }
/**
* Called when this Document's editor is destroyed.