Backing out the patch for bug 287707, since it is causing smoketest blocker bug 351057

This commit is contained in:
martijn.martijn%gmail.com 2006-09-01 19:51:05 +00:00
Родитель d97c8958ba
Коммит c2fee37cda
2 изменённых файлов: 2 добавлений и 13 удалений

Просмотреть файл

@ -192,10 +192,7 @@ nsDocShellEditorData::SetEditor(nsIEditor *inEditor)
mEditor = inEditor; // owning addref mEditor = inEditor; // owning addref
} }
if (!inEditor)
mMakeEditable = PR_FALSE;
return NS_OK; return NS_OK;
} }

Просмотреть файл

@ -183,18 +183,10 @@ nsHTMLEditor::~nsHTMLEditor()
if (mResizedObject) if (mResizedObject)
HideResizers(); HideResizers();
nsCOMPtr<nsISelectionController> selCon;
nsresult result = GetSelectionController(getter_AddRefs(selCon));
if (NS_SUCCEEDED(result) && selCon)
{
selCon->SetSelectionFlags(
nsISelectionDisplay::DISPLAY_TEXT | nsISelectionDisplay::DISPLAY_IMAGES);
}
//the autopointers will clear themselves up. //the autopointers will clear themselves up.
//but we need to also remove the listeners or we have a leak //but we need to also remove the listeners or we have a leak
nsCOMPtr<nsISelection>selection; nsCOMPtr<nsISelection>selection;
result = GetSelection(getter_AddRefs(selection)); nsresult result = GetSelection(getter_AddRefs(selection));
// if we don't get the selection, just skip this // if we don't get the selection, just skip this
if (NS_SUCCEEDED(result) && selection) if (NS_SUCCEEDED(result) && selection)
{ {