bug 202561 - html mail dialog comes up when it isn't supposed to - r/sr=sspitzer

This commit is contained in:
shliang%netscape.com 2003-04-23 00:03:36 +00:00
Родитель 0363aa3019
Коммит 9ddfc77e01
2 изменённых файлов: 11 добавлений и 6 удалений

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

@ -2852,8 +2852,6 @@ function loadHTMLMsgPrefs() {
try {
fontFace = pref.getCharPref("msgcompose.font_face");
doStatefulCommand('cmd_fontFace', fontFace);
EditorRemoveTextProperty("font","face");
EditorSetTextProperty("font", "face", fontFace);
} catch (e) {}
try {

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

@ -4137,15 +4137,22 @@ nsresult nsMsgCompose::TagConvertible(nsIDOMNode *node, PRInt32 *_retval)
if (domElement)
{
PRBool hasAttribute;
nsAutoString color;
if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("background"), &hasAttribute))
&& hasAttribute) // There is a background image
*_retval = nsIMsgCompConvertible::No;
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("text"), &hasAttribute))
&& hasAttribute) // There is a text color
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("text"), &hasAttribute)) &&
hasAttribute &&
NS_SUCCEEDED(domElement->GetAttribute(NS_LITERAL_STRING("text"), color)) &&
!color.Equals(NS_LITERAL_STRING("#000000"))) {
*_retval = nsIMsgCompConvertible::Altering;
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("bgcolor"), &hasAttribute))
&& hasAttribute) // There is a background color
}
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("bgcolor"), &hasAttribute)) &&
hasAttribute &&
NS_SUCCEEDED(domElement->GetAttribute(NS_LITERAL_STRING("bgcolor"), color)) &&
!color.Equals(NS_LITERAL_STRING("#FFFFFF"), nsCaseInsensitiveStringComparator())) {
*_retval = nsIMsgCompConvertible::Altering;
}
//ignore special color setting for link, vlink and alink at this point.
}