was in 9.8 and 9.9 bs7868 SHOULD have been checked into trunk trying again. will go into 1.0 branch soonest

This commit is contained in:
mjudge%netscape.com 2002-04-16 23:02:50 +00:00
parent 09110a5680
commit 678b215e1d

View File

@ -109,6 +109,8 @@
#include "prlog.h"
#include "nsISelectionDisplay.h"
// this is going away - see
//
#include "nsIBrowserHistory.h"
@ -382,6 +384,12 @@ NS_IMETHODIMP nsDocShell::GetInterface(const nsIID & aIID, void **aSink)
return NS_NOINTERFACE;
}
else if (aIID.Equals(NS_GET_IID(nsISelectionDisplay))) {
nsCOMPtr<nsIPresShell> shell;
nsresult rv = GetPresShell(getter_AddRefs(shell));
if (NS_SUCCEEDED(rv) && shell)
return shell->QueryInterface(aIID,aSink);
}
else {
return QueryInterface(aIID, aSink);
}