From 3302663a953de23fccb4a5257d282b2a3ce1643f Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Mon, 2 May 2005 22:59:49 +0000 Subject: [PATCH] Fixing bustage ... extra file with trivial helper functions. --- gfx/public/nsMargin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/public/nsMargin.h b/gfx/public/nsMargin.h index 5b73adf986b..f939c47e8a2 100644 --- a/gfx/public/nsMargin.h +++ b/gfx/public/nsMargin.h @@ -58,6 +58,9 @@ struct nsMargin { nscoord aRight, nscoord aBottom) {left += aLeft; top += aTop; 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) nscoord& side(PRUint8 aSide) { NS_PRECONDITION(aSide <= NS_SIDE_LEFT, "Out of range side");