Defines | Enumerations | Functions

nsChangeHint.h File Reference

#include "prtypes.h"
Include dependency graph for nsChangeHint.h:
This graph shows which files directly or indirectly include this file:

Defines

#define NS_STYLE_HINT_NONE   nsChangeHint(0)
#define NS_STYLE_HINT_VISUAL   nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_SyncFrameView)
#define nsChangeHint_ReflowFrame
#define NS_STYLE_HINT_REFLOW   nsChangeHint(NS_STYLE_HINT_VISUAL | nsChangeHint_ReflowFrame)
#define NS_STYLE_HINT_FRAMECHANGE   nsChangeHint(NS_STYLE_HINT_REFLOW | nsChangeHint_ReconstructFrame)

Enumerations

enum  nsChangeHint {
  nsChangeHint_RepaintFrame = 0x01, nsChangeHint_NeedReflow = 0x02, nsChangeHint_ClearAncestorIntrinsics = 0x04, nsChangeHint_ClearDescendantIntrinsics = 0x08,
  nsChangeHint_NeedDirtyReflow = 0x10, nsChangeHint_SyncFrameView = 0x20, nsChangeHint_UpdateCursor = 0x40, nsChangeHint_UpdateEffects = 0x80,
  nsChangeHint_UpdateOpacityLayer = 0x100, nsChangeHint_UpdateTransformLayer = 0x200, nsChangeHint_ReconstructFrame = 0x400
}
enum  nsRestyleHint { eRestyle_Self = 0x1, eRestyle_Subtree = 0x2, eRestyle_LaterSiblings = 0x4 }
 

|nsRestyleHint| is a bitfield for the result of |HasStateDependentStyle| and |HasAttributeDependentStyle|.

More...

Functions

void operator< (nsChangeHint s1, nsChangeHint s2)
void operator> (nsChangeHint s1, nsChangeHint s2)
void operator!= (nsChangeHint s1, nsChangeHint s2)
void operator== (nsChangeHint s1, nsChangeHint s2)
void operator<= (nsChangeHint s1, nsChangeHint s2)
void operator>= (nsChangeHint s1, nsChangeHint s2)
nsChangeHint NS_CombineHint (nsChangeHint aH1, nsChangeHint aH2)
nsChangeHint NS_SubtractHint (nsChangeHint aH1, nsChangeHint aH2)
PRBool NS_UpdateHint (nsChangeHint &aDest, nsChangeHint aSrc)
PRBool NS_IsHintSubset (nsChangeHint aSubset, nsChangeHint aSuperSet)

Define Documentation

#define NS_STYLE_HINT_FRAMECHANGE   nsChangeHint(NS_STYLE_HINT_REFLOW | nsChangeHint_ReconstructFrame)
#define NS_STYLE_HINT_NONE   nsChangeHint(0)
#define NS_STYLE_HINT_REFLOW   nsChangeHint(NS_STYLE_HINT_VISUAL | nsChangeHint_ReflowFrame)
#define NS_STYLE_HINT_VISUAL   nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_SyncFrameView)
#define nsChangeHint_ReflowFrame

Enumeration Type Documentation

Enumerator:
nsChangeHint_RepaintFrame 
nsChangeHint_NeedReflow 
nsChangeHint_ClearAncestorIntrinsics 
nsChangeHint_ClearDescendantIntrinsics 
nsChangeHint_NeedDirtyReflow 
nsChangeHint_SyncFrameView 
nsChangeHint_UpdateCursor 
nsChangeHint_UpdateEffects 

SVG filter/mask/clip effects need to be recomputed because the URI in the filter/mask/clip-path property has changed.

This wipes out cached nsSVGPropertyBase and subclasses which hold a reference to the element referenced by the URI, and a mutation observer for the DOM subtree rooted at that element. Also, for filters they store a bounding-box for the filter result so that if the filter changes we can invalidate the old covered area.

nsChangeHint_UpdateOpacityLayer 

Visual change only, but the change can be handled entirely by updating the layer(s) for the frame.

nsChangeHint_UpdateTransformLayer 
nsChangeHint_ReconstructFrame 

|nsRestyleHint| is a bitfield for the result of |HasStateDependentStyle| and |HasAttributeDependentStyle|.

When no restyling is necessary, use |nsRestyleHint(0)|.

Enumerator:
eRestyle_Self 
eRestyle_Subtree 
eRestyle_LaterSiblings 

Function Documentation

nsChangeHint NS_CombineHint ( nsChangeHint  aH1,
nsChangeHint  aH2 
) [inline]
PRBool NS_IsHintSubset ( nsChangeHint  aSubset,
nsChangeHint  aSuperSet 
) [inline]
nsChangeHint NS_SubtractHint ( nsChangeHint  aH1,
nsChangeHint  aH2 
) [inline]
PRBool NS_UpdateHint ( nsChangeHint aDest,
nsChangeHint  aSrc 
) [inline]
void operator!= ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]
void operator< ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]
void operator<= ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]
void operator== ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]
void operator> ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]
void operator>= ( nsChangeHint  s1,
nsChangeHint  s2 
) [inline]