Fix bug 208601: Fix DocumentViewerImpl::GetCanGetContents() to get the correct selection for text fields, using nsIPresShell::GetSelectionForCopy(). Fixes Services in text fields in Camino. r=roc, sr=roc, a=asa.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179639 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smfr%smfr.org
2005-09-04 20:53:59 +00:00
parent ecbdd98d0b
commit 33669a9cd4
3 changed files with 20 additions and 17 deletions

View File

@@ -1177,6 +1177,8 @@ public:
NS_IMETHOD NotifyDestroyingFrame(nsIFrame* aFrame);
NS_IMETHOD DoCopy();
NS_IMETHOD GetSelectionForCopy(nsISelection** outSelection);
NS_IMETHOD GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocationString);
NS_IMETHOD DoGetContents(const nsACString& aMimeType, PRUint32 aFlags, PRBool aSelectionOnly, nsAString& outValue);
@@ -1395,9 +1397,6 @@ protected:
nsresult SetPrefNoScriptRule();
nsresult SetPrefNoFramesRule(void);
nsresult GetSelectionForCopy(nsISelection** outSelection);
nsICSSStyleSheet* mPrefStyleSheet; // mStyleSet owns it but we maintain a ref, may be null
#ifdef DEBUG
PRUint32 mUpdateCount;
@@ -4703,7 +4702,7 @@ NS_IMETHODIMP PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocation
return NS_ERROR_FAILURE;
}
nsresult
NS_IMETHODIMP
PresShell::GetSelectionForCopy(nsISelection** outSelection)
{
nsresult rv = NS_OK;