зеркало из https://github.com/mozilla/pjs.git
Fixed it so that box offsets (left/right/top/bottom) can be negative numbers
This commit is contained in:
Родитель
c827a4487c
Коммит
0106607e08
|
@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
|
|||
case PROP_TOP:
|
||||
case PROP_LEFT:
|
||||
case PROP_RIGHT:
|
||||
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
case PROP_HEIGHT:
|
||||
case PROP_WIDTH:
|
||||
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
|
|
|
@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
|
|||
case PROP_TOP:
|
||||
case PROP_LEFT:
|
||||
case PROP_RIGHT:
|
||||
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
case PROP_HEIGHT:
|
||||
case PROP_WIDTH:
|
||||
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
|
|
|
@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
|
|||
case PROP_TOP:
|
||||
case PROP_LEFT:
|
||||
case PROP_RIGHT:
|
||||
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
case PROP_HEIGHT:
|
||||
case PROP_WIDTH:
|
||||
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
|
||||
|
|
Загрузка…
Ссылка в новой задаче