Fixing bustage ... extra file with trivial helper functions.

This commit is contained in:
roc+%cs.cmu.edu 2005-05-02 22:59:49 +00:00
Родитель 64ba22b837
Коммит 3302663a95
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -58,6 +58,9 @@ struct nsMargin {
nscoord aRight, nscoord aBottom) {left += aLeft; top += aTop; nscoord aRight, nscoord aBottom) {left += aLeft; top += aTop;
right += aRight; bottom += aBottom;} right += aRight; bottom += aBottom;}
nscoord LeftRight() const { return left + right; }
nscoord TopBottom() const { return top + bottom; }
#if (NS_SIDE_TOP == 0) && (NS_SIDE_RIGHT == 1) && (NS_SIDE_BOTTOM == 2) && (NS_SIDE_LEFT == 3) #if (NS_SIDE_TOP == 0) && (NS_SIDE_RIGHT == 1) && (NS_SIDE_BOTTOM == 2) && (NS_SIDE_LEFT == 3)
nscoord& side(PRUint8 aSide) { nscoord& side(PRUint8 aSide) {
NS_PRECONDITION(aSide <= NS_SIDE_LEFT, "Out of range side"); NS_PRECONDITION(aSide <= NS_SIDE_LEFT, "Out of range side");