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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user