Public Attributes

mozilla::FramePropertyDescriptor Struct Reference

A pointer to a FramePropertyDescriptor serves as a unique property ID. More...

#include <FramePropertyTable.h>

List of all members.

Public Attributes

FramePropertyDestructor mDestructor
 mDestructor will be called if it's non-null.
FramePropertyDestructorWithFrame mDestructorWithFrame
 mDestructorWithFrame will be called if it's non-null and mDestructor is null.

Detailed Description

A pointer to a FramePropertyDescriptor serves as a unique property ID.

The FramePropertyDescriptor stores metadata about the property. Currently the only metadata is a destructor function. The destructor function is called on property values when they are overwritten or deleted.

To use this class, declare a global (i.e., file, class or function-scope static member) FramePropertyDescriptor and pass its address as aProperty in the FramePropertyTable methods.


Member Data Documentation

mDestructor will be called if it's non-null.

mDestructorWithFrame will be called if it's non-null and mDestructor is null.

WARNING: The frame passed to mDestructorWithFrame may be a dangling frame pointer, if this is being called during presshell teardown. Do not use it except to compare against other frame pointers. No frame will have been allocated with the same address yet.


The documentation for this struct was generated from the following file: