re-checking this in.  New fix that jag and I worked out (ok HE did!)
r=jaggernaut@netscape.com
This commit is contained in:
jdunn%netscape.com 2001-12-08 13:09:19 +00:00
Родитель 42f03bf9a5
Коммит 53b49896e5
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1411,7 +1411,9 @@ nsHTMLEditor::RelativeFontChangeOnTextNode( PRInt32 aSizeChange,
if (NS_FAILED(res)) return res;
}
nsAutoString nodeType(aSizeChange==1 ? NS_LITERAL_STRING("big") : NS_LITERAL_STRING("small"));
NS_NAMED_LITERAL_STRING(bigSize, "big");
NS_NAMED_LITERAL_STRING(smallSize, "small");
const nsAString& nodeType = (aSizeChange==1) ? NS_STATIC_CAST(const nsAString&, bigSize) : NS_STATIC_CAST(const nsAString&, smallSize);
// look for siblings that are correct type of node
nsCOMPtr<nsIDOMNode> sibling;
GetPriorHTMLSibling(node, address_of(sibling));