Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsScrollBoxObject.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIScrollBoxObject.h"
#include "nsBoxObject.h"
#include "nsIPresShell.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIDOMElement.h"
#include "nsPresContext.h"
#include "nsIFrame.h"
#include "nsIScrollableView.h"
#include "nsIScrollableFrame.h"

Go to the source code of this file.


class  nsScrollBoxObject


static nsIFrameGetScrolledBox (nsBoxObject *aScrollBox)
nsresult NS_NewScrollBoxObject (nsIBoxObject **aResult)

Function Documentation

static nsIFrame* GetScrolledBox ( nsBoxObject aScrollBox) [static]

Definition at line 132 of file nsScrollBoxObject.cpp.

  nsIFrame* frame = aScrollBox->GetFrame();
  if (!frame) 
    return nsnull;
  nsIScrollableFrame* scrollFrame;
  if (NS_FAILED(CallQueryInterface(frame, &scrollFrame))) {
    NS_WARNING("nsIScrollBoxObject attached to something that's not a scroll frame!");
    return nsnull;
  nsIFrame* scrolledFrame = scrollFrame->GetScrolledFrame();
  if (!scrolledFrame)
    return nsnull;
  nsIBox* scrolledBox;
  if (NS_FAILED(scrolledFrame->GetChildBox(&scrolledBox)))
    return nsnull;
  return scrolledBox;

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 492 of file nsScrollBoxObject.cpp.

  *aResult = new nsScrollBoxObject;
  if (!*aResult)
  return NS_OK;

Here is the call graph for this function: