Allow negative values for clip rects as per css spec

This commit is contained in:
kipp%netscape.com 1999-04-10 17:33:09 +00:00
parent 4206c1a3b9
commit 26c9966824
3 changed files with 3 additions and 3 deletions

View File

@ -2912,7 +2912,7 @@ PRBool CSSParserImpl::ParseClip(PRInt32& aErrorCode, nsICSSDeclaration* aDeclara
}
nsCSSValue values[4];
for (index = 0; index < 4; index++) {
if (! ParsePositiveVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
if (! ParseVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
return PR_FALSE;
}
if (3 != index) {

View File

@ -2912,7 +2912,7 @@ PRBool CSSParserImpl::ParseClip(PRInt32& aErrorCode, nsICSSDeclaration* aDeclara
}
nsCSSValue values[4];
for (index = 0; index < 4; index++) {
if (! ParsePositiveVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
if (! ParseVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
return PR_FALSE;
}
if (3 != index) {

View File

@ -2912,7 +2912,7 @@ PRBool CSSParserImpl::ParseClip(PRInt32& aErrorCode, nsICSSDeclaration* aDeclara
}
nsCSSValue values[4];
for (index = 0; index < 4; index++) {
if (! ParsePositiveVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
if (! ParseVariant(aErrorCode, values[index], VARIANT_AL, nsnull)) {
return PR_FALSE;
}
if (3 != index) {