From 40cc77a6140ea7cacfe6042e5c8ae5b6fa942031 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Wed, 30 Dec 1998 06:46:35 +0000 Subject: [PATCH] added mInsideNeighbor to nsBorderEdge, allowing fast access for an outside edge to it's neighboring inside edge. value is undefined for inside edges. git-svn-id: svn://10.0.0.236/trunk@16987 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/public/nsIStyleContext.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/layout/base/public/nsIStyleContext.h b/mozilla/layout/base/public/nsIStyleContext.h index 3e857a859e3..7362701ec82 100644 --- a/mozilla/layout/base/public/nsIStyleContext.h +++ b/mozilla/layout/base/public/nsIStyleContext.h @@ -194,15 +194,21 @@ protected: #define BORDER_PRECEDENT_LOWER 1 #define BORDER_PRECEDENT_HIGHER 2 +struct nsBorderEdges; /** an encapsulation of border edge info */ struct nsBorderEdge { + /** the thickness of the edge */ nscoord mWidth; + /** the length of the edge */ nscoord mLength; PRUint8 mStyle; nscolor mColor; + /** which side does this edge represent? */ PRUint8 mSide; + /** if this edge is an outside edge, the border infor for the adjacent inside object */ + nsBorderEdges * mInsideNeighbor; nsBorderEdge(); }; @@ -214,6 +220,7 @@ inline nsBorderEdge::nsBorderEdge() mStyle=NS_STYLE_BORDER_STYLE_NONE; mColor=0; mSide=NS_SIDE_LEFT; + mInsideNeighbor = nsnull; }; /** an encapsulation of a border defined by its edges */