Bug #228720 --> Don't down-convert message to plain text if dir attribute is set for RTL users.

r/sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2003-12-19 15:56:08 +00:00
Родитель bc79387c63
Коммит 1f59330e3b
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -4263,6 +4263,9 @@ nsresult nsMsgCompose::TagConvertible(nsIDOMNode *node, PRInt32 *_retval)
!color.Equals(NS_LITERAL_STRING("#FFFFFF"), nsCaseInsensitiveStringComparator())) { !color.Equals(NS_LITERAL_STRING("#FFFFFF"), nsCaseInsensitiveStringComparator())) {
*_retval = nsIMsgCompConvertible::Altering; *_retval = nsIMsgCompConvertible::Altering;
} }
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("dir"), &hasAttribute))
&& hasAttribute) // dir=rtl attributes should not downconvert
*_retval = nsIMsgCompConvertible::No;
//ignore special color setting for link, vlink and alink at this point. //ignore special color setting for link, vlink and alink at this point.
} }