Bug 1480310. Use docshell's editingSession getter instead of getInterface to get editing sessions. r=kmag

All the C++ consumers already call the getter, so we can remove
nsIEditingSession from the docshell GetInterface method completely.

Differential Revision: https://phabricator.services.mozilla.com/D2668
This commit is contained in:
Boris Zbarsky
2018-08-02 19:15:27 +00:00
parent 8d85a763a0
commit e9dec2a2c5
6 changed files with 5 additions and 18 deletions

View File

@@ -619,11 +619,6 @@ nsDocShell::GetInterface(const nsIID& aIID, void** aSink)
*aSink = mFind;
NS_ADDREF((nsISupports*)*aSink);
return NS_OK;
} else if (aIID.Equals(NS_GET_IID(nsIEditingSession))) {
nsCOMPtr<nsIEditingSession> es;
GetEditingSession(getter_AddRefs(es));
es.forget(aSink);
return *aSink ? NS_OK : NS_NOINTERFACE;
} else if (aIID.Equals(NS_GET_IID(nsISelectionDisplay))) {
nsIPresShell* shell = GetPresShell();
if (shell) {