mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
09110a5680
commit
678b215e1d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user