Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsSpaceManager.cpp File Reference
#include "nsSpaceManager.h"
#include "nsPoint.h"
#include "nsRect.h"
#include "nsSize.h"
#include <stdlib.h>
#include "nsVoidArray.h"
#include "nsIFrame.h"
#include "nsString.h"
#include "nsIPresShell.h"
#include "nsMemory.h"
#include "nsHTMLReflowState.h"
#include "nsHashSets.h"

Go to the source code of this file.

Defines

#define NSCOORD_MIN   (-2147483647 - 1) /* minimum signed value */

Functions

 PSArenaAllocCB (size_t aSize, void *aClosure)
 PSArenaFreeCB (size_t aSize, void *aPtr, void *aClosure)
static PRBool ShouldClearFrame (nsIFrame *aFrame, PRUint8 aBreakType)

Define Documentation

#define NSCOORD_MIN   (-2147483647 - 1) /* minimum signed value */

Definition at line 60 of file nsSpaceManager.cpp.


Function Documentation

PSArenaAllocCB ( size_t  aSize,
void aClosure 
)

Definition at line 90 of file nsSpaceManager.cpp.

{
  return NS_STATIC_CAST(nsIPresShell*, aClosure)->AllocateFrame(aSize);
}
PSArenaFreeCB ( size_t  aSize,
void aPtr,
void aClosure 
)

Definition at line 97 of file nsSpaceManager.cpp.

{
  NS_STATIC_CAST(nsIPresShell*, aClosure)->FreeFrame(aSize, aPtr);
}
static PRBool ShouldClearFrame ( nsIFrame aFrame,
PRUint8  aBreakType 
) [static]

Definition at line 1231 of file nsSpaceManager.cpp.

{
  PRUint8 floatType = aFrame->GetStyleDisplay()->mFloats;
  PRBool result;
  switch (aBreakType) {
    case NS_STYLE_CLEAR_LEFT_AND_RIGHT:
      result = PR_TRUE;
      break;
    case NS_STYLE_CLEAR_LEFT:
      result = floatType == NS_STYLE_FLOAT_LEFT;
      break;
    case NS_STYLE_CLEAR_RIGHT:
      result = floatType == NS_STYLE_FLOAT_RIGHT;
      break;
    default:
      result = PR_FALSE;
  }
  return result;
}

Here is the caller graph for this function: