Fixed it so that box offsets (left/right/top/bottom) can be negative numbers

This commit is contained in:
troy%netscape.com 1999-01-15 22:09:15 +00:00
Родитель c827a4487c
Коммит 0106607e08
3 изменённых файлов: 3 добавлений и 0 удалений

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

@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
case PROP_TOP: case PROP_TOP:
case PROP_LEFT: case PROP_LEFT:
case PROP_RIGHT: case PROP_RIGHT:
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
case PROP_HEIGHT: case PROP_HEIGHT:
case PROP_WIDTH: case PROP_WIDTH:
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed); return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);

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

@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
case PROP_TOP: case PROP_TOP:
case PROP_LEFT: case PROP_LEFT:
case PROP_RIGHT: case PROP_RIGHT:
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
case PROP_HEIGHT: case PROP_HEIGHT:
case PROP_WIDTH: case PROP_WIDTH:
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed); return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);

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

@ -2147,6 +2147,7 @@ PRBool CSSParserImpl::ParseProperty(PRInt32& aErrorCode,
case PROP_TOP: case PROP_TOP:
case PROP_LEFT: case PROP_LEFT:
case PROP_RIGHT: case PROP_RIGHT:
return ParseVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);
case PROP_HEIGHT: case PROP_HEIGHT:
case PROP_WIDTH: case PROP_WIDTH:
return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed); return ParsePositiveVariant(aErrorCode, aDeclaration, aPropID, VARIANT_AHLP, nsnull, parsed);