зеркало из https://github.com/mozilla/pjs.git
Backing out the patch for bug 287707, since it is causing smoketest blocker bug 351057
This commit is contained in:
Родитель
d97c8958ba
Коммит
c2fee37cda
|
@ -192,10 +192,7 @@ nsDocShellEditorData::SetEditor(nsIEditor *inEditor)
|
|||
|
||||
mEditor = inEditor; // owning addref
|
||||
}
|
||||
|
||||
if (!inEditor)
|
||||
mMakeEditable = PR_FALSE;
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -183,18 +183,10 @@ nsHTMLEditor::~nsHTMLEditor()
|
|||
if (mResizedObject)
|
||||
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.
|
||||
//but we need to also remove the listeners or we have a leak
|
||||
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 (NS_SUCCEEDED(result) && selection)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче