Back to index

lightning-sunbird  0.9+nobinonly
Defines | Enumerations | Functions
nsChangeHint.h File Reference
#include "prtypes.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


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


enum  nsChangeHint {
  nsChangeHint_RepaintFrame = 0x01, nsChangeHint_ReflowFrame = 0x02, nsChangeHint_SyncFrameView = 0x04, nsChangeHint_UpdateCursor = 0x08,
  nsChangeHint_ReconstructFrame = 0x10
enum  nsReStyleHint { eReStyle_Self = 0x1, eReStyle_LaterSiblings = 0x2 }
 |nsReStyleHint| is a bitfield for the result of |HasStateDependentStyle| and |HasAttributeDependentStyle|. More...


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

Definition at line 100 of file nsChangeHint.h.

Definition at line 94 of file nsChangeHint.h.

Definition at line 98 of file nsChangeHint.h.

Definition at line 96 of file nsChangeHint.h.

Enumeration Type Documentation


Definition at line 44 of file nsChangeHint.h.

  nsChangeHint_RepaintFrame = 0x01,  // change was visual only (e.g., COLOR=)
  nsChangeHint_ReflowFrame = 0x02,   // change requires reflow (e.g., WIDTH=)
  nsChangeHint_SyncFrameView = 0x04, // change requires view to be updated, if there is one (e.g., clip:)
  nsChangeHint_UpdateCursor = 0x08,  // The currently shown mouse cursor needs to be updated
  nsChangeHint_ReconstructFrame = 0x10   // change requires frame change (e.g., display:)
                                         // This subsumes all the above
  // TBD: add nsChangeHint_ForceFrameView to force frame reconstruction if the frame doesn't yet
  // have a view

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

All values have an implied "and descendants." When no restyling is necesary, use |nsReStyleHint(0)|.


Definition at line 109 of file nsChangeHint.h.

Function Documentation

Definition at line 70 of file nsChangeHint.h.

  return (nsChangeHint)(aH1 | aH2);

Here is the caller graph for this function:

PRBool NS_IsHintSubset ( nsChangeHint  aSubset,
nsChangeHint  aSuperSet 
) [inline]

Definition at line 89 of file nsChangeHint.h.

  return (aSubset & aSuperSet) == aSubset;

Definition at line 75 of file nsChangeHint.h.

  return (nsChangeHint)(aH1 & ~aH2);

Here is the caller graph for this function:

PRBool NS_UpdateHint ( nsChangeHint aDest,
nsChangeHint  aSrc 
) [inline]

Definition at line 81 of file nsChangeHint.h.

  nsChangeHint r = (nsChangeHint)(aDest | aSrc);
  PRBool changed = (int)r != (int)aDest;
  aDest = r;
  return changed;

Here is the caller graph for this function: