Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsTreeBodyFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISupportsArray.h"
#include "nsPresContext.h"
#include "nsINameSpaceManager.h"
#include "nsIScrollbarFrame.h"
#include "nsTreeBodyFrame.h"
#include "nsTreeSelection.h"
#include "nsXULAtoms.h"
#include "nsCSSAnonBoxes.h"
#include "nsHTMLAtoms.h"
#include "nsIContent.h"
#include "nsStyleContext.h"
#include "nsIBoxObject.h"
#include "nsGUIEvent.h"
#include "nsIDOMMouseEvent.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMNSDocument.h"
#include "nsIDOMXULElement.h"
#include "nsIDocument.h"
#include "nsICSSStyleRule.h"
#include "nsCSSRendering.h"
#include "nsIFontMetrics.h"
#include "nsIDeviceContext.h"
#include "nsIXULTemplateBuilder.h"
#include "nsXPIDLString.h"
#include "nsHTMLContainerFrame.h"
#include "nsIView.h"
#include "nsWidgetsCID.h"
#include "nsBoxFrame.h"
#include "nsBoxObject.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "nsBoxLayoutState.h"
#include "nsIDragService.h"
#include "nsTreeContentView.h"
#include "nsTreeUtils.h"
#include "nsChildIterator.h"
#include "nsIScrollableView.h"
#include "nsITheme.h"
#include "nsITimelineService.h"
#include "nsITimerInternal.h"
#include "imgIRequest.h"
#include "imgIContainer.h"
#include "imgIContainerObserver.h"
#include "imgILoader.h"
#include "nsINodeInfo.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Defines

#define ELLIPSIS   "..."

Functions

static NS_DEFINE_CID (kWidgetCID, NS_CHILD_CID)
 CancelImageRequest (const nsAString &aKey, nsTreeImageCacheEntry aEntry, void *aData)
nsresult NS_NewTreeBodyFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
static void GetBorderPadding (nsStyleContext *aContext, nsMargin &aMargin)
static void AdjustForBorderPadding (nsStyleContext *aContext, nsRect &aRect)
static void FindScrollParts (nsIFrame *aCurrFrame, nsTreeBodyFrame::ScrollParts *aResult)

Define Documentation

#define ELLIPSIS   "..."

Definition at line 105 of file nsTreeBodyFrame.cpp.


Function Documentation

static void AdjustForBorderPadding ( nsStyleContext aContext,
nsRect aRect 
) [static]

Definition at line 198 of file nsTreeBodyFrame.cpp.

{
  nsMargin borderPadding(0, 0, 0, 0);
  GetBorderPadding(aContext, borderPadding);
  aRect.Deflate(borderPadding);
}

Here is the call graph for this function:

Here is the caller graph for this function:

CancelImageRequest ( const nsAString &  aKey,
nsTreeImageCacheEntry  aEntry,
void aData 
)

Definition at line 119 of file nsTreeBodyFrame.cpp.

{
  aEntry.request->Cancel(NS_BINDING_ABORTED);
  return PL_DHASH_NEXT;
}

Here is the caller graph for this function:

static void FindScrollParts ( nsIFrame aCurrFrame,
nsTreeBodyFrame::ScrollParts aResult 
) [static]

Definition at line 743 of file nsTreeBodyFrame.cpp.

{
  nsIScrollbarFrame *sf = nsnull;
  CallQueryInterface(aCurrFrame, &sf);
  if (sf) {
    PRBool isHorizontal = PR_FALSE;
    if (NS_SUCCEEDED(aCurrFrame->GetOrientation(isHorizontal))) {
      if (!isHorizontal) {
        if (!aResult->mVScrollbar) {
          aResult->mVScrollbar = sf;
        }
      }
    }
    // don't bother searching inside a scrollbar
    return;
  }

  nsIFrame* child = aCurrFrame->GetFirstChild(nsnull);
  while (child && !aResult->mVScrollbar) {
    FindScrollParts(child, aResult);
    child = child->GetNextSibling();
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void GetBorderPadding ( nsStyleContext aContext,
nsMargin aMargin 
) [static]

Definition at line 190 of file nsTreeBodyFrame.cpp.

{
  nsStyleBorderPadding  borderPaddingStyle;
  aContext->GetBorderPaddingFor(borderPaddingStyle);
  borderPaddingStyle.GetBorderPadding(aMargin);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kWidgetCID  ,
NS_CHILD_CID   
) [static]
nsresult NS_NewTreeBodyFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 132 of file nsTreeBodyFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTreeBodyFrame* it = new (aPresShell) nsTreeBodyFrame(aPresShell);
  if (!it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewTreeFrame

Here is the caller graph for this function: