Don't parse "string" values for text-align till we actually support them in

layout... Bug 197771, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-03-18 05:25:37 +00:00
Родитель 91b905b643
Коммит c53fa07cb2
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -3979,7 +3979,9 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
return ParseVariant(aErrorCode, aValue, VARIANT_AHK,
nsCSSProps::kTableLayoutKTable);
case eCSSProperty_text_align:
return ParseVariant(aErrorCode, aValue, VARIANT_HK | VARIANT_STRING,
// When we support aligning on a string, we can parse text-align
// as a string....
return ParseVariant(aErrorCode, aValue, VARIANT_HK /* | VARIANT_STRING */,
nsCSSProps::kTextAlignKTable);
case eCSSProperty_text_decoration:
return ParseTextDecoration(aErrorCode, aValue);

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

@ -3979,7 +3979,9 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
return ParseVariant(aErrorCode, aValue, VARIANT_AHK,
nsCSSProps::kTableLayoutKTable);
case eCSSProperty_text_align:
return ParseVariant(aErrorCode, aValue, VARIANT_HK | VARIANT_STRING,
// When we support aligning on a string, we can parse text-align
// as a string....
return ParseVariant(aErrorCode, aValue, VARIANT_HK /* | VARIANT_STRING */,
nsCSSProps::kTextAlignKTable);
case eCSSProperty_text_decoration:
return ParseTextDecoration(aErrorCode, aValue);