зеркало из https://github.com/mozilla/gecko-dev.git
Ensure that the style buttons update as soon as you press them, so that the button reflects the type-in state properly.
This commit is contained in:
Родитель
3dbb4c8d9b
Коммит
fe26596791
|
@ -141,7 +141,10 @@ nsBaseStateUpdatingCommand::DoCommand(const PRUnichar *aCommand, nsISupports * r
|
|||
nsCOMPtr<nsIEditorShell> editorShell = do_QueryInterface(refCon);
|
||||
if (!editorShell) return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
return ToggleState(editorShell, mTagName);
|
||||
nsresult rv = ToggleState(editorShell, mTagName);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return UpdateCommandState(aCommand, refCon);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -141,7 +141,10 @@ nsBaseStateUpdatingCommand::DoCommand(const PRUnichar *aCommand, nsISupports * r
|
|||
nsCOMPtr<nsIEditorShell> editorShell = do_QueryInterface(refCon);
|
||||
if (!editorShell) return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
return ToggleState(editorShell, mTagName);
|
||||
nsresult rv = ToggleState(editorShell, mTagName);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return UpdateCommandState(aCommand, refCon);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче