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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user