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:
Родитель
91b905b643
Коммит
c53fa07cb2
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче