Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsAbsoluteContainingBlock.cpp File Reference
#include "nsCOMPtr.h"
#include "nsAbsoluteContainingBlock.h"
#include "nsContainerFrame.h"
#include "nsReflowPath.h"
#include "nsIViewManager.h"
#include "nsLayoutAtoms.h"
#include "nsIPresShell.h"
#include "nsHTMLParts.h"
#include "nsPresContext.h"

Go to the source code of this file.

Functions

static void AddFrameToChildBounds (nsIFrame *aKidFrame, nsRect *aChildBounds)
static PRBool IsFixedPaddingSize (nsStyleUnit aUnit)
static PRBool IsFixedMarginSize (nsStyleUnit aUnit)
static PRBool IsFixedMaxSize (nsStyleUnit aUnit)

Function Documentation

static void AddFrameToChildBounds ( nsIFrame aKidFrame,
nsRect aChildBounds 
) [static]

Definition at line 138 of file nsAbsoluteContainingBlock.cpp.

{
  NS_PRECONDITION(aKidFrame, "Must have kid frame");
  
  if (!aChildBounds) {
    return;
  }

  // Add in the child's bounds
  nsRect kidBounds = aKidFrame->GetRect();
  nsRect* kidOverflow = aKidFrame->GetOverflowAreaProperty();
  if (kidOverflow) {
    // Put it in the parent's coordinate system
    kidBounds = *kidOverflow + kidBounds.TopLeft();
  }
  aChildBounds->UnionRect(*aChildBounds, kidBounds);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool IsFixedMarginSize ( nsStyleUnit  aUnit) [static]

Definition at line 263 of file nsAbsoluteContainingBlock.cpp.

                                                   {
  return aUnit == eStyleUnit_Coord || aUnit == eStyleUnit_Null;
}

Here is the caller graph for this function:

static PRBool IsFixedMaxSize ( nsStyleUnit  aUnit) [static]

Definition at line 266 of file nsAbsoluteContainingBlock.cpp.

                                                {
  return aUnit == eStyleUnit_Null || aUnit == eStyleUnit_Coord;
}

Here is the caller graph for this function:

static PRBool IsFixedPaddingSize ( nsStyleUnit  aUnit) [static]

Definition at line 260 of file nsAbsoluteContainingBlock.cpp.

                                                    {
  return aUnit == eStyleUnit_Coord || aUnit == eStyleUnit_Null;
}

Here is the caller graph for this function: