зеркало из https://github.com/mozilla/pjs.git
Superscript and Subscript text styles should be mutually exclusive, b=100825, r=jfrancis, sr=kin, a=asa/drivers
This commit is contained in:
Родитель
68dd69dd13
Коммит
a9de1759c0
|
@ -429,12 +429,12 @@ nsStyleUpdatingCommand::ToggleState(nsIEditorShell *aEditorShell, const char* aT
|
|||
if (tagName.Equals(NS_LITERAL_STRING("sub")))
|
||||
{
|
||||
removeName.AssignWithConversion("sup");
|
||||
rv = aEditorShell->RemoveTextProperty(tagName.get(), nsnull);
|
||||
rv = aEditorShell->RemoveTextProperty(removeName.get(), nsnull);
|
||||
}
|
||||
else if (tagName.Equals(NS_LITERAL_STRING("sup")))
|
||||
{
|
||||
removeName.AssignWithConversion("sub");
|
||||
rv = aEditorShell->RemoveTextProperty(tagName.get(), nsnull);
|
||||
rv = aEditorShell->RemoveTextProperty(removeName.get(), nsnull);
|
||||
}
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = aEditorShell->SetTextProperty(tagName.get(), nsnull, nsnull);
|
||||
|
|
Загрузка…
Ссылка в новой задаче