From f1aaed93f5ef8a63c53479ac5566ec60394f2e5d Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Tue, 16 Apr 2002 23:02:50 +0000 Subject: [PATCH] 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 --- mozilla/docshell/base/nsDocShell.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index e4d2e03ff98..afe2d996307 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -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 shell; + nsresult rv = GetPresShell(getter_AddRefs(shell)); + if (NS_SUCCEEDED(rv) && shell) + return shell->QueryInterface(aIID,aSink); + } else { return QueryInterface(aIID, aSink); }