зеркало из https://github.com/mozilla/pjs.git
Bug 24676 ("Need -moz-outline-radius feature"). Fixed the parsing of -moz-outline-radius.
This commit is contained in:
Родитель
a1b0f005b2
Коммит
0d68374d75
|
@ -2527,6 +2527,12 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
|
|||
SetValueImportant(eCSSProperty__moz_border_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_border_radius_bottomLeft);
|
||||
break;
|
||||
case eCSSProperty__moz_outline_radius:
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topLeft);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomLeft);
|
||||
break;
|
||||
default:
|
||||
result = NS_ERROR_ILLEGAL_VALUE;
|
||||
break;
|
||||
|
|
|
@ -2869,6 +2869,11 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
|
|||
case eCSSProperty__moz_border_radius_bottomRight:
|
||||
case eCSSProperty__moz_border_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty__moz_outline_radius_topLeft:
|
||||
case eCSSProperty__moz_outline_radius_topRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty_bottom:
|
||||
case eCSSProperty_top:
|
||||
case eCSSProperty_left:
|
||||
|
|
|
@ -2527,6 +2527,12 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
|
|||
SetValueImportant(eCSSProperty__moz_border_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_border_radius_bottomLeft);
|
||||
break;
|
||||
case eCSSProperty__moz_outline_radius:
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topLeft);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomLeft);
|
||||
break;
|
||||
default:
|
||||
result = NS_ERROR_ILLEGAL_VALUE;
|
||||
break;
|
||||
|
|
|
@ -2527,6 +2527,12 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
|
|||
SetValueImportant(eCSSProperty__moz_border_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_border_radius_bottomLeft);
|
||||
break;
|
||||
case eCSSProperty__moz_outline_radius:
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topLeft);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomLeft);
|
||||
break;
|
||||
default:
|
||||
result = NS_ERROR_ILLEGAL_VALUE;
|
||||
break;
|
||||
|
|
|
@ -2869,6 +2869,11 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
|
|||
case eCSSProperty__moz_border_radius_bottomRight:
|
||||
case eCSSProperty__moz_border_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty__moz_outline_radius_topLeft:
|
||||
case eCSSProperty__moz_outline_radius_topRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty_bottom:
|
||||
case eCSSProperty_top:
|
||||
case eCSSProperty_left:
|
||||
|
|
|
@ -2527,6 +2527,12 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
|
|||
SetValueImportant(eCSSProperty__moz_border_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_border_radius_bottomLeft);
|
||||
break;
|
||||
case eCSSProperty__moz_outline_radius:
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topLeft);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomLeft);
|
||||
break;
|
||||
default:
|
||||
result = NS_ERROR_ILLEGAL_VALUE;
|
||||
break;
|
||||
|
|
|
@ -2869,6 +2869,11 @@ PRBool CSSParserImpl::ParseSingleValueProperty(PRInt32& aErrorCode,
|
|||
case eCSSProperty__moz_border_radius_bottomRight:
|
||||
case eCSSProperty__moz_border_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty__moz_outline_radius_topLeft:
|
||||
case eCSSProperty__moz_outline_radius_topRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomRight:
|
||||
case eCSSProperty__moz_outline_radius_bottomLeft:
|
||||
return ParseVariant(aErrorCode, aValue, VARIANT_HLP, nsnull);
|
||||
case eCSSProperty_bottom:
|
||||
case eCSSProperty_top:
|
||||
case eCSSProperty_left:
|
||||
|
|
|
@ -2527,6 +2527,12 @@ CSSDeclarationImpl::SetValueImportant(nsCSSProperty aProperty)
|
|||
SetValueImportant(eCSSProperty__moz_border_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_border_radius_bottomLeft);
|
||||
break;
|
||||
case eCSSProperty__moz_outline_radius:
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topLeft);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_topRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomRight);
|
||||
SetValueImportant(eCSSProperty__moz_outline_radius_bottomLeft);
|
||||
break;
|
||||
default:
|
||||
result = NS_ERROR_ILLEGAL_VALUE;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче