From ef0d1b914b47dcbc9ab1d64a83dc736a4c054bb9 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Tue, 16 Aug 2005 08:12:15 +0000 Subject: [PATCH] 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 --- mozilla/docshell/base/nsDocShell.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 87427bc9d10..70c1d7c6216 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -8110,6 +8110,9 @@ nsDocShell::SetHasFocus(PRBool aHasFocus) NS_IMETHODIMP nsDocShell::SetCanvasHasFocus(PRBool aCanvasHasFocus) { + if (mEditorData && mEditorData->GetEditable()) + return NS_ERROR_NOT_AVAILABLE; + nsCOMPtr presShell; GetPresShell(getter_AddRefs(presShell)); if (!presShell) return NS_ERROR_FAILURE;