Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsPresContext.cpp File Reference
#include "nsCOMPtr.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsILinkHandler.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShell.h"
#include "nsIContentViewer.h"
#include "nsIDocumentViewer.h"
#include "nsPIDOMWindow.h"
#include "nsIFocusController.h"
#include "nsStyleSet.h"
#include "nsImageLoader.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIRenderingContext.h"
#include "nsIURL.h"
#include "nsIDocument.h"
#include "nsStyleContext.h"
#include "nsLayoutAtoms.h"
#include "nsILookAndFeel.h"
#include "nsWidgetsCID.h"
#include "nsIComponentManager.h"
#include "nsIURIContentListener.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIServiceManager.h"
#include "nsIDOMElement.h"
#include "nsContentPolicyUtils.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMWindow.h"
#include "nsXPIDLString.h"
#include "nsIWeakReferenceUtils.h"
#include "nsCSSRendering.h"
#include "prprf.h"
#include "nsIDOMDocument.h"
#include "nsAutoPtr.h"
#include "nsEventStateManager.h"
#include "nsContentUtils.h"
#include "imgIContainer.h"
#include "nsIImageLoadingContent.h"
#include "nsLayoutCID.h"
#include "nsISelectionImageService.h"
#include "nsContentCID.h"

Go to the source code of this file.

Defines

#define MAKE_FONT_PREF_KEY(_pref, _s0, _s1)

Functions

static nscolor MakeColorPref (const char *colstr)
 PR_STATIC_CALLBACK (PRBool) destroy_loads(nsHashKey *aKey
static NS_DEFINE_CID (kSelectionImageService, NS_SELECTIONIMAGESERVICE_CID)
static void SetImgAnimModeOnImgReq (imgIRequest *aImgReq, PRUint16 aMode)

Variables

voidaData
static const char *const kGenericFont []

Define Documentation

#define MAKE_FONT_PREF_KEY (   _pref,
  _s0,
  _s1 
)
Value:
_pref.Assign(_s0); \
 _pref.Append(_s1);

Definition at line 274 of file nsPresContext.cpp.


Function Documentation

static nscolor MakeColorPref ( const char *  colstr) [static]

Definition at line 91 of file nsPresContext.cpp.

{
  PRUint32 red, green, blue;
  nscolor colorref;

  // 4.x stored RGB color values as a string rather than as an int,
  // thus we need to do this conversion
  PR_sscanf(colstr, "#%02x%02x%02x", &red, &green, &blue);
  colorref = NS_RGB(red, green, blue);
  return colorref;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kSelectionImageService  ,
NS_SELECTIONIMAGESERVICE_CID   
) [static]
static void SetImgAnimModeOnImgReq ( imgIRequest aImgReq,
PRUint16  aMode 
) [static]

Definition at line 856 of file nsPresContext.cpp.

{
  if (aImgReq) {
    nsCOMPtr<imgIContainer> imgCon;
    aImgReq->GetImage(getter_AddRefs(imgCon));
    if (imgCon) {
      imgCon->SetAnimationMode(aMode);
    }
  }
}

Here is the call graph for this function:


Variable Documentation

Definition at line 141 of file nsPresContext.cpp.

const char* const kGenericFont[] [static]
Initial value:
 {
  ".variable.",
  ".fixed.",
  ".serif.", 
  ".sans-serif.", 
  ".monospace.",
  ".cursive.",
  ".fantasy."
}

Definition at line 278 of file nsPresContext.cpp.