mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Backing out last change to fix linux bustage. r=cmanske
This commit is contained in:
parent
7a8885ff90
commit
6c8757c6d2
@ -1388,7 +1388,8 @@ nsEditorShell::FinishHTMLSource(void)
|
||||
if (mHTMLSourceMode)
|
||||
{
|
||||
// Call the JS command to convert and switch to previous edit mode
|
||||
return DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_FinishHTMLSource"));
|
||||
nsAutoString command(NS_LITERAL_STRING("cmd_FinishHTMLSource"));
|
||||
return DoControllerCommand(command);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
@ -1650,7 +1651,8 @@ nsEditorShell::CheckAndSaveDocument(const PRUnichar *reasonToSave, PRBool *_retv
|
||||
else if (mHTMLSourceMode) // result == eNo
|
||||
{
|
||||
// User doesn't want to save document, so we just cancel source mode
|
||||
rv = DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_CancelHTMLSource"));
|
||||
nsAutoString command(NS_LITERAL_STRING("cmd_CancelHTMLSource"));
|
||||
rv = DoControllerCommand(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1388,7 +1388,8 @@ nsEditorShell::FinishHTMLSource(void)
|
||||
if (mHTMLSourceMode)
|
||||
{
|
||||
// Call the JS command to convert and switch to previous edit mode
|
||||
return DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_FinishHTMLSource"));
|
||||
nsAutoString command(NS_LITERAL_STRING("cmd_FinishHTMLSource"));
|
||||
return DoControllerCommand(command);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
@ -1650,7 +1651,8 @@ nsEditorShell::CheckAndSaveDocument(const PRUnichar *reasonToSave, PRBool *_retv
|
||||
else if (mHTMLSourceMode) // result == eNo
|
||||
{
|
||||
// User doesn't want to save document, so we just cancel source mode
|
||||
rv = DoControllerCommand(NS_ConvertASCIItoUCS2("cmd_CancelHTMLSource"));
|
||||
nsAutoString command(NS_LITERAL_STRING("cmd_CancelHTMLSource"));
|
||||
rv = DoControllerCommand(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user