mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
added nsBorderEdge and nsBorderEdges
This commit is contained in:
parent
fcd61896ea
commit
72c29a43f2
@ -24,6 +24,7 @@
|
||||
#include "nsCoord.h"
|
||||
#include "nsMargin.h"
|
||||
#include "nsFont.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsStyleCoord.h"
|
||||
#include "nsStyleStruct.h"
|
||||
#include "nsStyleConsts.h"
|
||||
@ -189,6 +190,45 @@ protected:
|
||||
nsStyleTable(void);
|
||||
};
|
||||
|
||||
#define BORDER_PRECEDENT_EQUAL 0
|
||||
#define BORDER_PRECEDENT_LOWER 1
|
||||
#define BORDER_PRECEDENT_HIGHER 2
|
||||
|
||||
|
||||
/** an encapsulation of border edge info */
|
||||
struct nsBorderEdge
|
||||
{
|
||||
nscoord mWidth;
|
||||
PRUint8 mStyle;
|
||||
nscolor mColor;
|
||||
PRUint8 mSide;
|
||||
|
||||
nsBorderEdge();
|
||||
};
|
||||
|
||||
inline nsBorderEdge::nsBorderEdge()
|
||||
{
|
||||
mWidth=0;
|
||||
mStyle=NS_STYLE_BORDER_STYLE_NONE;
|
||||
mColor=0;
|
||||
mSide=NS_SIDE_LEFT;
|
||||
};
|
||||
|
||||
/** an encapsulation of a border defined by its edges */
|
||||
struct nsBorderEdges
|
||||
{
|
||||
nsVoidArray mEdges[4];
|
||||
nsMargin mMaxBorderWidth;
|
||||
|
||||
nsBorderEdges();
|
||||
};
|
||||
|
||||
inline nsBorderEdges::nsBorderEdges()
|
||||
{
|
||||
mMaxBorderWidth.SizeTo(0,0,0,0);
|
||||
};
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#define NS_ISTYLECONTEXT_IID \
|
||||
|
Loading…
Reference in New Issue
Block a user