Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsXULTooltipListener.cpp File Reference
#include "nsXULTooltipListener.h"
#include "nsIDOMMouseEvent.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMXULElement.h"
#include "nsIDocument.h"
#include "nsXULAtoms.h"
#include "nsIPresShell.h"
#include "nsIFrame.h"
#include "nsIPopupBoxObject.h"
#include "nsIServiceManager.h"
#include "nsGUIEvent.h"
#include "nsIPrivateDOMEvent.h"
#include "nsPresContext.h"
#include "nsIScriptContext.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMWindowInternal.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Functions

static void GetImmediateChild (nsIContent *aContent, nsIAtom *aTag, nsIContent **aResult)

Function Documentation

static void GetImmediateChild ( nsIContent aContent,
nsIAtom aTag,
nsIContent **  aResult 
) [static]

Definition at line 546 of file nsXULTooltipListener.cpp.

{
  *aResult = nsnull;
  PRUint32 childCount = aContent->GetChildCount();
  for (PRUint32 i = 0; i < childCount; i++) {
    nsIContent *child = aContent->GetChildAt(i);

    if (child->Tag() == aTag) {
      *aResult = child;
      NS_ADDREF(*aResult);
      return;
    }
  }

  return;
}

Here is the call graph for this function:

Here is the caller graph for this function: