Bug 304053 Don't draw canvas focus on editor/midas frames r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@177824 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2005-08-16 08:12:15 +00:00
parent b570763634
commit ef0d1b914b

View File

@@ -8110,6 +8110,9 @@ nsDocShell::SetHasFocus(PRBool aHasFocus)
NS_IMETHODIMP
nsDocShell::SetCanvasHasFocus(PRBool aCanvasHasFocus)
{
if (mEditorData && mEditorData->GetEditable())
return NS_ERROR_NOT_AVAILABLE;
nsCOMPtr<nsIPresShell> presShell;
GetPresShell(getter_AddRefs(presShell));
if (!presShell) return NS_ERROR_FAILURE;