Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsXMLElement.cpp File Reference
#include "nsXMLElement.h"
#include "nsHTMLAtoms.h"
#include "nsLayoutAtoms.h"
#include "nsIDocument.h"
#include "nsIAtom.h"
#include "nsNetUtil.h"
#include "nsIEventListenerManager.h"
#include "nsIDocShell.h"
#include "nsIEventStateManager.h"
#include "nsIDOMEvent.h"
#include "nsINameSpaceManager.h"
#include "nsINodeInfo.h"
#include "nsIURL.h"
#include "nsIIOService.h"
#include "nsNetCID.h"
#include "nsIServiceManager.h"
#include "nsXPIDLString.h"
#include "nsIDocShellTreeItem.h"
#include "nsIScriptSecurityManager.h"
#include "nsIRefreshURI.h"
#include "nsStyleConsts.h"
#include "nsIPresShell.h"
#include "nsGUIEvent.h"
#include "nsPresContext.h"
#include "nsIDOMCSSStyleDeclaration.h"
#include "nsIDOMViewCSS.h"
#include "nsIXBLService.h"
#include "nsIBindingManager.h"

Go to the source code of this file.

Functions

nsresult NS_NewXMLElement (nsIContent **aInstancePtrResult, nsINodeInfo *aNodeInfo)
static nsresult DocShellToPresContext (nsIDocShell *aShell, nsPresContext **aPresContext)
static nsresult SpecialAutoLoadReturn (nsresult aRv, nsLinkVerb aVerb)

Function Documentation

static nsresult DocShellToPresContext ( nsIDocShell aShell,
nsPresContext **  aPresContext 
) [static]

Definition at line 151 of file nsXMLElement.cpp.

{
  *aPresContext = nsnull;

  nsresult rv;
  nsCOMPtr<nsIDocShell> ds = do_QueryInterface(aShell,&rv);
  if (NS_FAILED(rv))
    return rv;

  return ds->GetPresContext(aPresContext);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewXMLElement ( nsIContent **  aInstancePtrResult,
nsINodeInfo aNodeInfo 
)

Definition at line 70 of file nsXMLElement.cpp.

{
  nsXMLElement* it = new nsXMLElement(aNodeInfo);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(*aInstancePtrResult = it);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static nsresult SpecialAutoLoadReturn ( nsresult  aRv,
nsLinkVerb  aVerb 
) [inline, static]

Definition at line 164 of file nsXMLElement.cpp.

{
  if (NS_SUCCEEDED(aRv)) {
    switch(aVerb) {
      case eLinkVerb_Embed:
        aRv = NS_XML_AUTOLINK_EMBED;
        break;
      case eLinkVerb_New:
        aRv = NS_XML_AUTOLINK_NEW;
        break;
      case eLinkVerb_Replace:
        aRv = NS_XML_AUTOLINK_REPLACE;
        break;
      default:
        aRv = NS_XML_AUTOLINK_UNDEFINED;
        break;
    }
  }
  return aRv;
}

Here is the caller graph for this function: