mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
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:
parent
8f0845aadf
commit
389deb958b
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user