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

git-svn-id: svn://10.0.0.236/trunk@119174 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2002-04-16 23:02:50 +00:00
parent 537bde0fdf
commit f1aaed93f5

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);
}