CSS3 Selectors is now in CR, so we can change -moz-hsl() to hsl(). Bug 208159,

r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-06-14 20:44:26 +00:00
Родитель 6fd2b6cf13
Коммит e49f24690b
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -2566,7 +2566,7 @@ PRBool CSSParserImpl::ParseColor(PRInt32& aErrorCode, nsCSSValue& aValue)
}
return PR_FALSE; // already pushed back
}
else if (mToken.mIdent.EqualsIgnoreCase("-moz-hsl")) {
else if (mToken.mIdent.EqualsIgnoreCase("hsl")) {
// hsl ( hue , saturation , lightness )
// "hue" is a number, "saturation" and "lightness" are percentages.
if (ParseHSLColor(aErrorCode, rgba, ')')) {
@ -3411,7 +3411,7 @@ PRBool CSSParserImpl::ParseVariant(PRInt32& aErrorCode, nsCSSValue& aValue,
(eCSSToken_Ident == tk->mType) ||
((eCSSToken_Function == tk->mType) &&
(tk->mIdent.EqualsIgnoreCase("rgb") ||
tk->mIdent.EqualsIgnoreCase("-moz-hsl") ||
tk->mIdent.EqualsIgnoreCase("hsl") ||
tk->mIdent.EqualsIgnoreCase("-moz-rgba") ||
tk->mIdent.EqualsIgnoreCase("-moz-hsla")))) {
// Put token back so that parse color can get it

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

@ -2566,7 +2566,7 @@ PRBool CSSParserImpl::ParseColor(PRInt32& aErrorCode, nsCSSValue& aValue)
}
return PR_FALSE; // already pushed back
}
else if (mToken.mIdent.EqualsIgnoreCase("-moz-hsl")) {
else if (mToken.mIdent.EqualsIgnoreCase("hsl")) {
// hsl ( hue , saturation , lightness )
// "hue" is a number, "saturation" and "lightness" are percentages.
if (ParseHSLColor(aErrorCode, rgba, ')')) {
@ -3411,7 +3411,7 @@ PRBool CSSParserImpl::ParseVariant(PRInt32& aErrorCode, nsCSSValue& aValue,
(eCSSToken_Ident == tk->mType) ||
((eCSSToken_Function == tk->mType) &&
(tk->mIdent.EqualsIgnoreCase("rgb") ||
tk->mIdent.EqualsIgnoreCase("-moz-hsl") ||
tk->mIdent.EqualsIgnoreCase("hsl") ||
tk->mIdent.EqualsIgnoreCase("-moz-rgba") ||
tk->mIdent.EqualsIgnoreCase("-moz-hsla")))) {
// Put token back so that parse color can get it