Back to index

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

#include <nsStyleStruct.h>

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

List of all members.

Public Member Functions

 nsStyleDisplay ()
 nsStyleDisplay (const nsStyleDisplay &aOther)
 ~nsStyleDisplay ()
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
nsChangeHint CalcDifference (const nsStyleDisplay &aOther) const
PRBool IsBlockLevel () const
PRBool IsFloating () const
PRBool IsAbsolutelyPositioned () const
PRBool IsPositioned () const
PRBool IsScrollableOverflow () const
PRBool IsTableClip () const

Public Attributes

nsCOMPtr< nsIURImBinding
nsRect mClip
float mOpacity
PRUint8 mDisplay
PRUint8 mOriginalDisplay
PRUint8 mAppearance
PRUint8 mPosition
PRUint8 mFloats
PRUint8 mBreakType
PRPackedBool mBreakBefore
PRPackedBool mBreakAfter
PRUint8 mOverflowX
PRUint8 mOverflowY
PRUint8 mClipFlags

Detailed Description

Definition at line 781 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 1190 of file nsStyleStruct.cpp.

{
  mAppearance = aSource.mAppearance;
  mDisplay = aSource.mDisplay;
  mOriginalDisplay = aSource.mOriginalDisplay;
  mBinding = aSource.mBinding;
  mPosition = aSource.mPosition;
  mFloats = aSource.mFloats;
  mBreakType = aSource.mBreakType;
  mBreakBefore = aSource.mBreakBefore;
  mBreakAfter = aSource.mBreakAfter;
  mOverflowX = aSource.mOverflowX;
  mOverflowY = aSource.mOverflowY;
  mClipFlags = aSource.mClipFlags;
  mClip = aSource.mClip;
  mOpacity = aSource.mOpacity;
}

Definition at line 784 of file nsStyleStruct.h.

{};

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1208 of file nsStyleStruct.cpp.

{
  nsChangeHint hint = nsChangeHint(0);

  if (!EqualURIs(mBinding, aOther.mBinding)
      || mPosition != aOther.mPosition
      || mDisplay != aOther.mDisplay
      || (mFloats == NS_STYLE_FLOAT_NONE) != (aOther.mFloats == NS_STYLE_FLOAT_NONE)
      || mOverflowX != aOther.mOverflowX
      || mOverflowY != aOther.mOverflowY
      // might need to create a view to handle change from 1.0 to partial opacity
      || (mOpacity != aOther.mOpacity
          && ((mOpacity < 1.0) != (aOther.mOpacity < 1.0))))
    NS_UpdateHint(hint, nsChangeHint_ReconstructFrame);

  if (mFloats != aOther.mFloats)
    NS_UpdateHint(hint, nsChangeHint_ReflowFrame);    

  // XXX the following is conservative, for now: changing float breaking shouldn't
  // necessarily require a repaint, reflow should suffice.
  if (mBreakType != aOther.mBreakType
      || mBreakBefore != aOther.mBreakBefore
      || mBreakAfter != aOther.mBreakAfter
      || mAppearance != aOther.mAppearance)
    NS_UpdateHint(hint, NS_CombineHint(nsChangeHint_ReflowFrame, nsChangeHint_RepaintFrame));

  if (mClipFlags != aOther.mClipFlags
      || mClip != aOther.mClip
      || mOpacity != aOther.mOpacity)
    NS_UpdateHint(hint, nsChangeHint_SyncFrameView);

  return hint;
}

Here is the call graph for this function:

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

Definition at line 791 of file nsStyleStruct.h.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 831 of file nsStyleStruct.h.

Here is the caller graph for this function:

Definition at line 823 of file nsStyleStruct.h.

Here is the caller graph for this function:

PRBool nsStyleDisplay::IsFloating ( ) const [inline]

Definition at line 827 of file nsStyleStruct.h.

                            {
    return NS_STYLE_FLOAT_NONE != mFloats;
  }

Here is the caller graph for this function:

Definition at line 834 of file nsStyleStruct.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 837 of file nsStyleStruct.h.

                                      {
    // mOverflowX and mOverflowY always match when one of them is
    // NS_STYLE_OVERFLOW_VISIBLE or NS_STYLE_OVERFLOW_CLIP.
    return mOverflowX != NS_STYLE_OVERFLOW_VISIBLE &&
           mOverflowX != NS_STYLE_OVERFLOW_CLIP;
  }

Here is the caller graph for this function:

PRBool nsStyleDisplay::IsTableClip ( ) const [inline]

Definition at line 846 of file nsStyleStruct.h.

Here is the caller graph for this function:

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

Definition at line 788 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 813 of file nsStyleStruct.h.

Definition at line 801 of file nsStyleStruct.h.

Definition at line 818 of file nsStyleStruct.h.

Definition at line 817 of file nsStyleStruct.h.

Definition at line 816 of file nsStyleStruct.h.

Definition at line 808 of file nsStyleStruct.h.

Definition at line 821 of file nsStyleStruct.h.

Definition at line 811 of file nsStyleStruct.h.

Definition at line 815 of file nsStyleStruct.h.

Definition at line 810 of file nsStyleStruct.h.

Definition at line 812 of file nsStyleStruct.h.

Definition at line 819 of file nsStyleStruct.h.

Definition at line 820 of file nsStyleStruct.h.

Definition at line 814 of file nsStyleStruct.h.


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