Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsStyleBackground Struct Reference

#include <nsStyleStruct.h>

Inheritance diagram for nsStyleBackground:
Inheritance graph
[legend]
Collaboration diagram for nsStyleBackground:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsStyleBackground (nsPresContext *aPresContext)
 nsStyleBackground (const nsStyleBackground &aOther)
 ~nsStyleBackground ()
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
nsChangeHint CalcDifference (const nsStyleBackground &aOther) const
PRBool IsTransparent () const
PRBool HasFixedBackground () const

Public Attributes

PRUint8 mBackgroundFlags
PRUint8 mBackgroundAttachment: 4
PRUint8 mBackgroundClip: 3
PRUint8 mBackgroundInlinePolicy: 2
PRUint8 mBackgroundOrigin: 3
PRUint8 mBackgroundRepeat: 4
union
nsStyleBackground.mBackgroundXPosition 
mBackgroundXPosition
union
nsStyleBackground.mBackgroundYPosition 
mBackgroundYPosition
nscolor mBackgroundColor
nsCOMPtr< imgIRequestmBackgroundImage

Detailed Description

Definition at line 154 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 1107 of file nsStyleStruct.cpp.

  : mBackgroundFlags(aSource.mBackgroundFlags),
    mBackgroundAttachment(aSource.mBackgroundAttachment),
    mBackgroundClip(aSource.mBackgroundClip),
    mBackgroundInlinePolicy(aSource.mBackgroundInlinePolicy),
    mBackgroundOrigin(aSource.mBackgroundOrigin),
    mBackgroundRepeat(aSource.mBackgroundRepeat),
    mBackgroundXPosition(aSource.mBackgroundXPosition),
    mBackgroundYPosition(aSource.mBackgroundYPosition),
    mBackgroundColor(aSource.mBackgroundColor),
    mBackgroundImage(aSource.mBackgroundImage)
{
}

Definition at line 1121 of file nsStyleStruct.cpp.

{
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1125 of file nsStyleStruct.cpp.

{
  if (mBackgroundAttachment != aOther.mBackgroundAttachment
    && ((NS_STYLE_BG_ATTACHMENT_FIXED == mBackgroundAttachment) ||
        (NS_STYLE_BG_ATTACHMENT_FIXED == aOther.mBackgroundAttachment)))
    // this might require creation of a view
    // XXX This probably doesn't call ApplyRenderingChangeToTree, which
    // means we might not invalidate the canvas if this is the body.
    return NS_STYLE_HINT_FRAMECHANGE;

  if ((mBackgroundAttachment == aOther.mBackgroundAttachment) &&
      (mBackgroundFlags == aOther.mBackgroundFlags) &&
      (mBackgroundRepeat == aOther.mBackgroundRepeat) &&
      (mBackgroundColor == aOther.mBackgroundColor) &&
      (mBackgroundClip == aOther.mBackgroundClip) &&
      (mBackgroundInlinePolicy == aOther.mBackgroundInlinePolicy) &&
      (mBackgroundOrigin == aOther.mBackgroundOrigin) &&
      EqualImages(mBackgroundImage, aOther.mBackgroundImage) &&
      ((!(mBackgroundFlags & NS_STYLE_BG_X_POSITION_PERCENT) ||
       (mBackgroundXPosition.mFloat == aOther.mBackgroundXPosition.mFloat)) &&
       (!(mBackgroundFlags & NS_STYLE_BG_X_POSITION_LENGTH) ||
        (mBackgroundXPosition.mCoord == aOther.mBackgroundXPosition.mCoord))) &&
      ((!(mBackgroundFlags & NS_STYLE_BG_Y_POSITION_PERCENT) ||
       (mBackgroundYPosition.mFloat == aOther.mBackgroundYPosition.mFloat)) &&
       (!(mBackgroundFlags & NS_STYLE_BG_Y_POSITION_LENGTH) ||
        (mBackgroundYPosition.mCoord == aOther.mBackgroundYPosition.mCoord))))
    return NS_STYLE_HINT_NONE;
  return NS_STYLE_HINT_VISUAL;
}

Here is the call graph for this function:

void nsStyleBackground::Destroy ( nsPresContext aContext) [inline]

Definition at line 164 of file nsStyleStruct.h.

                                        {
    this->~nsStyleBackground();
    aContext->FreeToShell(sizeof(nsStyleBackground), this);
  };

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1163 of file nsStyleStruct.cpp.

Here is the caller graph for this function:

Definition at line 196 of file nsStyleStruct.h.

Here is the caller graph for this function:

void* nsStyleBackground::operator new ( size_t  sz,
nsPresContext aContext 
) [inline]

Definition at line 161 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 179 of file nsStyleStruct.h.

Definition at line 180 of file nsStyleStruct.h.

Definition at line 193 of file nsStyleStruct.h.

Definition at line 178 of file nsStyleStruct.h.

Definition at line 194 of file nsStyleStruct.h.

Definition at line 181 of file nsStyleStruct.h.

Definition at line 182 of file nsStyleStruct.h.

Definition at line 183 of file nsStyleStruct.h.


The documentation for this struct was generated from the following files: