Classes | Defines | Enumerations

nsStyleStruct.h File Reference

#include "nsColor.h"
#include "nsCoord.h"
#include "nsMargin.h"
#include "nsRect.h"
#include "nsFont.h"
#include "nsStyleCoord.h"
#include "nsStyleConsts.h"
#include "nsChangeHint.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsCOMPtr.h"
#include "nsCOMArray.h"
#include "nsTArray.h"
#include "nsIAtom.h"
#include "nsIURI.h"
#include "nsCSSValue.h"
#include "nsStyleTransformMatrix.h"
#include "nsAlgorithm.h"
#include "imgIRequest.h"
#include "nsStyleStructFwd.h"
Include dependency graph for nsStyleStruct.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  nsStyleFont
struct  nsStyleGradientStop
class  nsStyleGradient
struct  nsStyleImage
 Represents a paintable image of one of the following types. More...
struct  nsStyleColor
struct  nsStyleBackground
struct  nsStyleBackground::Position
union  nsStyleBackground::Position::PositionCoord
struct  nsStyleBackground::Size
union  nsStyleBackground::Size::Dimension
struct  nsStyleBackground::Layer
struct  nsStyleMargin
struct  nsStylePadding
struct  nsBorderColors
struct  nsCSSShadowItem
class  nsCSSShadowArray
struct  nsStyleBorder
struct  nsStyleOutline
struct  nsStyleList
struct  nsStylePosition
struct  nsStyleTextReset
struct  nsStyleText
struct  nsStyleVisibility
struct  nsTimingFunction
struct  nsTransition
struct  nsStyleDisplay
struct  nsStyleTable
struct  nsStyleTableBorder
struct  nsStyleContentData
struct  nsStyleCounterData
struct  nsStyleQuotes
struct  nsStyleContent
struct  nsStyleUIReset
struct  nsCursorImage
struct  nsStyleUserInterface
struct  nsStyleXUL
struct  nsStyleColumn
struct  nsStyleSVGPaint
struct  nsStyleSVG
struct  nsStyleSVGReset

Defines

#define NS_STYLE_INHERIT_MASK   0x00ffffff
#define NS_STYLE_HAS_TEXT_DECORATIONS   0x01000000
#define NS_STYLE_HAS_PSEUDO_ELEMENT_DATA   0x02000000
#define NS_STYLE_CONTEXT_TYPE_MASK   0xf0000000
#define NS_STYLE_CONTEXT_TYPE_SHIFT   28
#define NS_RULE_NODE_GC_MARK   0x02000000
#define NS_RULE_NODE_IS_IMPORTANT   0x08000000
#define NS_RULE_NODE_LEVEL_MASK   0xf0000000
#define NS_RULE_NODE_LEVEL_SHIFT   28
#define NS_FOR_VISIBLE_BACKGROUND_LAYERS_BACK_TO_FRONT(var_, stylebg_)   for (PRUint32 var_ = (stylebg_)->mImageCount; var_-- != 0; )
#define BORDER_COLOR_FOREGROUND   0x20
#define OUTLINE_COLOR_INITIAL   0x80
#define BORDER_COLOR_SPECIAL   0xA0
#define BORDER_STYLE_MASK   0x1F
#define NS_SPACING_MARGIN   0
#define NS_SPACING_PADDING   1
#define NS_SPACING_BORDER   2
#define NS_ROUND_BORDER_TO_PIXELS(l, tpp)   ((l) == 0) ? 0 : NS_MAX((tpp), (l) / (tpp) * (tpp))
#define NS_ROUND_OFFSET_TO_PIXELS(l, tpp)
#define DELETE_ARRAY_IF(array)   if (array) { delete[] array; array = nsnull; }

Enumerations

enum  nsStyleImageType { eStyleImageType_Null, eStyleImageType_Image, eStyleImageType_Gradient }
enum  nsStyleContentType {
  eStyleContentType_String = 1, eStyleContentType_Image = 10, eStyleContentType_Attr = 20, eStyleContentType_Counter = 30,
  eStyleContentType_Counters = 31, eStyleContentType_OpenQuote = 40, eStyleContentType_CloseQuote = 41, eStyleContentType_NoOpenQuote = 42,
  eStyleContentType_NoCloseQuote = 43, eStyleContentType_AltContent = 50
}
enum  nsStyleSVGPaintType { eStyleSVGPaintType_None = 1, eStyleSVGPaintType_Color, eStyleSVGPaintType_Server }

Define Documentation

#define BORDER_COLOR_FOREGROUND   0x20
#define BORDER_COLOR_SPECIAL   0xA0
#define BORDER_STYLE_MASK   0x1F
#define DELETE_ARRAY_IF (   array  )     if (array) { delete[] array; array = nsnull; }
#define NS_FOR_VISIBLE_BACKGROUND_LAYERS_BACK_TO_FRONT (   var_,
  stylebg_ 
)    for (PRUint32 var_ = (stylebg_)->mImageCount; var_-- != 0; )
#define NS_ROUND_BORDER_TO_PIXELS (   l,
  tpp 
)    ((l) == 0) ? 0 : NS_MAX((tpp), (l) / (tpp) * (tpp))
#define NS_ROUND_OFFSET_TO_PIXELS (   l,
  tpp 
)
Value:
(((l) == 0) ? 0 : \
    ((l) > 0) ? NS_MAX( (tpp), ((l) + ((tpp) / 2)) / (tpp) * (tpp)) : \
                NS_MIN(-(tpp), ((l) - ((tpp) / 2)) / (tpp) * (tpp)))
#define NS_RULE_NODE_GC_MARK   0x02000000
#define NS_RULE_NODE_IS_IMPORTANT   0x08000000
#define NS_RULE_NODE_LEVEL_MASK   0xf0000000
#define NS_RULE_NODE_LEVEL_SHIFT   28
#define NS_SPACING_BORDER   2
#define NS_SPACING_MARGIN   0
#define NS_SPACING_PADDING   1
#define NS_STYLE_CONTEXT_TYPE_MASK   0xf0000000
#define NS_STYLE_CONTEXT_TYPE_SHIFT   28
#define NS_STYLE_HAS_PSEUDO_ELEMENT_DATA   0x02000000
#define NS_STYLE_HAS_TEXT_DECORATIONS   0x01000000
#define NS_STYLE_INHERIT_MASK   0x00ffffff
#define OUTLINE_COLOR_INITIAL   0x80

Enumeration Type Documentation

Enumerator:
eStyleContentType_String 
eStyleContentType_Image 
eStyleContentType_Attr 
eStyleContentType_Counter 
eStyleContentType_Counters 
eStyleContentType_OpenQuote 
eStyleContentType_CloseQuote 
eStyleContentType_NoOpenQuote 
eStyleContentType_NoCloseQuote 
eStyleContentType_AltContent 
Enumerator:
eStyleImageType_Null 
eStyleImageType_Image 
eStyleImageType_Gradient 
Enumerator:
eStyleSVGPaintType_None 
eStyleSVGPaintType_Color 
eStyleSVGPaintType_Server