mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Allow negative values for clip rects as per css spec
This commit is contained in:
parent
4206c1a3b9
commit
26c9966824
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user