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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user