Classes | Namespaces | Defines | Typedefs | Enumerations | Functions | Variables

nsContentUtils.h File Reference

#include <math.h>
#include "nsAString.h"
#include "nsIStatefulFrame.h"
#include "nsINodeInfo.h"
#include "nsNodeInfoManager.h"
#include "nsContentList.h"
#include "nsDOMClassInfoID.h"
#include "nsIXPCScriptable.h"
#include "nsIDOM3Node.h"
#include "nsDataHashtable.h"
#include "nsIScriptRuntime.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMEvent.h"
#include "nsTArray.h"
#include "nsTextFragment.h"
#include "nsReadableUtils.h"
#include "nsIPrefBranch2.h"
#include "mozilla/AutoRestore.h"
#include "nsINode.h"
#include "nsHashtable.h"
Include dependency graph for nsContentUtils.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  EventNameMapping
struct  nsShortcutCandidate
class  nsContentUtils
class  nsCxPusher
class  nsAutoScriptBlocker
class  mozAutoRemovableBlockerRemover
class  nsContentTypeParser

Namespaces

namespace  mozilla
 

This is the base class for all link classes.


namespace  mozilla::layers
namespace  mozilla::dom

Defines

#define have_PrefChangedFunc_typedef
#define NS_HOLD_JS_OBJECTS(obj, clazz)
#define NS_DROP_JS_OBJECTS(obj, clazz)   nsContentUtils::DropJSObjects(NS_CYCLE_COLLECTION_UPCAST(obj, clazz))
#define NS_INTERFACE_MAP_ENTRY_TEAROFF(_interface, _allocator)
#define NS_ENSURE_FINITE(f, rv)
#define NS_ENSURE_FINITE2(f1, f2, rv)
#define NS_ENSURE_FINITE3(f1, f2, f3, rv)
#define NS_ENSURE_FINITE4(f1, f2, f3, f4, rv)
#define NS_ENSURE_FINITE5(f1, f2, f3, f4, f5, rv)
#define NS_ENSURE_FINITE6(f1, f2, f3, f4, f5, f6, rv)
#define NS_CONTENT_DELETE_LIST_MEMBER(type_, ptr_, member_)

Typedefs

typedef int(* PrefChangedFunc )(const char *, void *)

Enumerations

enum  EventNameType {
  EventNameType_None = 0x0000, EventNameType_HTML = 0x0001, EventNameType_XUL = 0x0002, EventNameType_SVGGraphic = 0x0004,
  EventNameType_SVGSVG = 0x0008, EventNameType_SMIL = 0x0016, EventNameType_HTMLXUL = 0x0003, EventNameType_All = 0xFFFF
}

Functions

PRBool NS_FloatIsFinite (jsdouble f)

Variables

const char kLoadAsData []

Define Documentation

#define have_PrefChangedFunc_typedef
#define NS_CONTENT_DELETE_LIST_MEMBER (   type_,
  ptr_,
  member_ 
)
Value:
{                                                                           \
    type_ *cur = (ptr_)->member_;                                             \
    (ptr_)->member_ = nsnull;                                                 \
    while (cur) {                                                             \
      type_ *next = cur->member_;                                             \
      cur->member_ = nsnull;                                                  \
      delete cur;                                                             \
      cur = next;                                                             \
    }                                                                         \
  }
#define NS_DROP_JS_OBJECTS (   obj,
  clazz 
)    nsContentUtils::DropJSObjects(NS_CYCLE_COLLECTION_UPCAST(obj, clazz))
#define NS_ENSURE_FINITE (   f,
  rv 
)
Value:
if (!NS_FloatIsFinite(f)) {                                                 \
    return (rv);                                                              \
  }
#define NS_ENSURE_FINITE2 (   f1,
  f2,
  rv 
)
Value:
if (!NS_FloatIsFinite((f1)+(f2))) {                                         \
    return (rv);                                                              \
  }
#define NS_ENSURE_FINITE3 (   f1,
  f2,
  f3,
  rv 
)
Value:
if (!NS_FloatIsFinite((f1)+(f2)+(f3))) {                                    \
    return (rv);                                                              \
  }
#define NS_ENSURE_FINITE4 (   f1,
  f2,
  f3,
  f4,
  rv 
)
Value:
if (!NS_FloatIsFinite((f1)+(f2)+(f3)+(f4))) {                               \
    return (rv);                                                              \
  }
#define NS_ENSURE_FINITE5 (   f1,
  f2,
  f3,
  f4,
  f5,
  rv 
)
Value:
if (!NS_FloatIsFinite((f1)+(f2)+(f3)+(f4)+(f5))) {                          \
    return (rv);                                                              \
  }
#define NS_ENSURE_FINITE6 (   f1,
  f2,
  f3,
  f4,
  f5,
  f6,
  rv 
)
Value:
if (!NS_FloatIsFinite((f1)+(f2)+(f3)+(f4)+(f5)+(f6))) {                     \
    return (rv);                                                              \
  }
#define NS_HOLD_JS_OBJECTS (   obj,
  clazz 
)
#define NS_INTERFACE_MAP_ENTRY_TEAROFF (   _interface,
  _allocator 
)
Value:
if (aIID.Equals(NS_GET_IID(_interface))) {                                  \
    foundInterface = static_cast<_interface *>(_allocator);                   \
    if (!foundInterface) {                                                    \
      *aInstancePtr = nsnull;                                                 \
      return NS_ERROR_OUT_OF_MEMORY;                                          \
    }                                                                         \
  } else

Typedef Documentation

typedef int(* PrefChangedFunc)(const char *, void *)

Enumeration Type Documentation

Enumerator:
EventNameType_None 
EventNameType_HTML 
EventNameType_XUL 
EventNameType_SVGGraphic 
EventNameType_SVGSVG 
EventNameType_SMIL 
EventNameType_HTMLXUL 
EventNameType_All 

Function Documentation

PRBool NS_FloatIsFinite ( jsdouble  f  )  [inline]

Variable Documentation

const char kLoadAsData[]