Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsGenericHTMLElement Class Reference

#include <nsGenericHTMLElement.h>

Inheritance diagram for nsGenericHTMLElement:

nsGenericElement nsIContent nsINode nsISupports nsGenericHTMLFormElement nsGenericHTMLFrameElement nsHTMLOptGroupElement nsHTMLOptionElement nsHTMLSelectElement

List of all members.

Detailed Description

A common superclass for HTML elements

Definition at line 72 of file nsGenericHTMLElement.h.

Public Types

enum  {
enum  {
  eCONTENT = 1 << 0, eDOCUMENT = 1 << 1, eATTRIBUTE = 1 << 2, eELEMENT = 1 << 3,
  eTEXT = 1 << 4, ePROCESSING_INSTRUCTION = 1 << 5, eCOMMENT = 1 << 6, eHTML = 1 << 7,
  eHTML_FORM_CONTROL = 1 << 8, eXUL = 1 << 9, eSVG = 1 << 10, eDOCUMENT_FRAGMENT = 1 << 11,
  eDATA_NODE = 1 << 12, eMATHML = 1 << 13
typedef nsIAtom *const *const AttrValuesArray
enum  ETabFocusType { eTabFocus_formElementsMask = (1<<1), eTabFocus_linksMask = (1<<2), eTabFocus_any = 1 + (1<<1) + (1<<2) }

Public Member Functions

virtual nsresult AddEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)
virtual void AddMutationObserver (nsIMutationObserver *aMutationObserver)
nsresult AddScriptEventListener (nsIAtom *aEventName, const nsAString &aValue, PRBool aDefer=PR_TRUE)
NS_IMETHOD AppendChild (nsIDOMNode *aNewChild, nsIDOMNode **aReturn)
nsresult AppendChildTo (nsIContent *aKid, PRBool aNotify)
virtual nsresult AppendText (const PRUnichar *aBuffer, PRUint32 aLength, PRBool aNotify)
virtual void AppendTextTo (nsAString &aResult)
virtual PRBool AttrValueIs (PRInt32 aNameSpaceID, nsIAtom *aName, nsIAtom *aValue, nsCaseTreatment aCaseSensitive) const
virtual PRBool AttrValueIs (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString &aValue, nsCaseTreatment aCaseSensitive) const
virtual void BeginAddingChildren ()
virtual nsresult BindToTree (nsIDocument *aDocument, nsIContent *aParent, nsIContent *aBindingParent, PRBool aCompileEventHandlers)
PRBool CheckHandleEventForAnchorsPreconditions (nsEventChainVisitor &aVisitor)
virtual nsresult Clone (nsINodeInfo *aNodeInfo, nsINode **aResult) const =0
nsresult CloneNode (PRBool aDeep, nsIDOMNode **aResult)
void Compact ()
nsresult CopyInnerTo (nsGenericElement *aDest) const
virtual nsresult DeleteProperty (PRUint16 aCategory, nsIAtom *aPropertyName)
nsresult DeleteProperty (nsIAtom *aPropertyName)
virtual void DestroyContent ()
virtual nsresult DispatchDOMEvent (nsEvent *aEvent, nsIDOMEvent *aDOMEvent, nsPresContext *aPresContext, nsEventStatus *aEventStatus)
nsresult DOMQueryInterface (nsIDOMHTMLElement *aElement, REFNSIID aIID, void **aInstancePtr)
virtual nsresult DoneAddingChildren (PRBool aHaveNotified)
virtual void DoneCreatingElement ()
virtual PRInt32 FindAttrValueIn (PRInt32 aNameSpaceID, nsIAtom *aName, AttrValuesArray *aValues, nsCaseTreatment aCaseSensitive) const
virtual PRInt32 FindAttrValueIn (PRInt32 aNameSpaceID, nsIAtom *aName, AttrValuesArray *aValues, nsCaseTreatment aCaseSensitive) const
virtual nsIContentFindFirstNonNativeAnonymous () const
< nsIDOMHTMLFormElement
FindForm (nsIForm *aCurrentForm=nsnull)
virtual PRBool GetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, nsAString &aResult) const
virtual PRUint32 GetAttrCount () const
NS_IMETHOD GetAttribute (const nsAString &aName, nsAString &aReturn)
virtual nsChangeHint GetAttributeChangeHint (const nsIAtom *aAttribute, PRInt32 aModType) const
nsDOMAttributeMap * GetAttributeMap ()
virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction () const
NS_IMETHOD GetAttributeNode (const nsAString &aName, nsIDOMAttr **aReturn)
NS_IMETHOD GetAttributeNodeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, nsIDOMAttr **aReturn)
NS_IMETHOD GetAttributeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, nsAString &aReturn)
NS_IMETHOD GetAttributes (nsIDOMNamedNodeMap **aAttributes)
virtual const nsAttrName * GetAttrNameAt (PRUint32 aIndex) const
void GetBaseTarget (nsAString &aBaseTarget) const
already_AddRefed< nsIURI > GetBaseURI () const
virtual nsIContentGetBindingParent () const
virtual nsIContentGetChildAt (PRUint32 aIndex) const
virtual PRUint32 GetChildCount () const
NS_IMETHOD GetChildNodes (nsIDOMNodeList **aChildNodes)
virtual nsIAtom * GetClassAttributeName () const
virtual const nsAttrValue * GetClasses () const
nsresult GetClassName (nsAString &aClassName)
nsRect GetClientAreaRect ()
nsresult GetClientHeight (PRInt32 *aClientHeight)
nsresult GetClientLeft (PRInt32 *aLength)
nsresult GetClientTop (PRInt32 *aLength)
nsresult GetClientWidth (PRInt32 *aClientWidth)
nsresult GetContentEditable (nsAString &aContentEditable)
nsIDocument * GetCurrentDoc () const
virtual PRUint32 GetDesiredIMEState ()
nsresult GetDir (nsAString &aDir)
nsIDocument * GetDocument () const
NS_METHOD GetElementsByTagName (const nsAString &aTagname, nsIDOMNodeList **aReturn)
NS_METHOD GetElementsByTagNameNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, nsIDOMNodeList **aReturn)
virtual already_AddRefed
< nsINodeInfo > 
GetExistingAttrNameFromQName (const nsAString &aStr) const
NS_IMETHOD GetFirstChild (nsIDOMNode **aFirstChild)
PtrBits GetFlags () const
nsIFormControlFrameGetFormControlFrame (PRBool aFlushContent)
nsresult GetHrefURIForAnchors (nsIURI **aURI) const
virtual nsIAtom * GetID () const
nsresult GetId (nsAString &aId)
virtual nsIAtom * GetIDAttributeName () const
virtual nsICSSStyleRule * GetInlineStyleRule ()
virtual nsresult GetInnerHTML (nsAString &aInnerHTML)
nsresult GetLang (nsAString &aLang)
NS_IMETHOD GetLastChild (nsIDOMNode **aLastChild)
virtual nsresult GetListenerManager (PRBool aCreateIfNotFound, nsIEventListenerManager **aResult)
NS_METHOD GetLocalName (nsAString &aLocalName)
PRInt32 GetNameSpaceID () const
NS_IMETHOD GetNamespaceURI (nsAString &aNamespaceURI)
NS_IMETHOD GetNextSibling (nsIDOMNode **aNextSibling)
NS_METHOD GetNodeName (nsAString &aNodeName)
nsINodeGetNodeParent () const
NS_IMETHOD GetNodeType (PRUint16 *aNodeType)
NS_IMETHOD GetNodeValue (nsAString &aNodeValue)
nsresult GetOffsetHeight (PRInt32 *aOffsetHeight)
nsresult GetOffsetLeft (PRInt32 *aOffsetLeft)
nsresult GetOffsetParent (nsIDOMElement **aOffsetParent)
void GetOffsetRect (nsRect &aRect, nsIContent **aOffsetParent)
nsresult GetOffsetTop (PRInt32 *aOffsetTop)
nsresult GetOffsetWidth (PRInt32 *aOffsetWidth)
nsIDocument * GetOwnerDoc () const
NS_IMETHOD GetOwnerDocument (nsIDOMDocument **aOwnerDocument)
nsIContentGetParent () const
NS_IMETHOD GetParentNode (nsIDOMNode **aParentNode)
const nsAttrValue * GetParsedAttr (nsIAtom *aAttr) const
NS_IMETHOD GetPrefix (nsAString &aPrefix)
NS_IMETHOD GetPreviousSibling (nsIDOMNode **aPreviousSibling)
nsIFrameGetPrimaryFrame (mozFlushType aType)
nsIFrameGetPrimaryFrame ()
virtual void * GetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
void * GetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
virtual PRUint32 GetScriptTypeID () const
nsresult GetScrollHeight (PRInt32 *aScrollHeight)
void GetScrollInfo (nsIScrollableView **aScrollableView, nsIFrame **aFrame=nsnull)
nsresult GetScrollLeft (PRInt32 *aScrollLeft)
nsresult GetScrollTop (PRInt32 *aScrollTop)
nsresult GetScrollWidth (PRInt32 *aScrollWidth)
nsIContentGetSelectionRootContent (nsIPresShell *aPresShell)
NS_IMETHOD GetSpellcheck (PRBool *aSpellcheck)
nsresult GetStyle (nsIDOMCSSStyleDeclaration **aStyle)
virtual nsresult GetSystemEventGroup (nsIDOMEventGroup **aGroup)
NS_IMETHOD GetTabIndex (PRInt32 *aTabIndex)
NS_METHOD GetTagName (nsAString &aTagName)
virtual nsPIDOMEventTarget * GetTargetForDOMEvent ()
virtual nsPIDOMEventTarget * GetTargetForEventTargetChain ()
virtual const nsTextFragmentGetText ()
nsIContentGetTextEditorRootContent (nsIEditor **aEditor=nsnull)
nsresult GetTitle (nsAString &aTitle)
virtual PRBool HasAttr (PRInt32 aNameSpaceID, nsIAtom *aName) const
NS_IMETHOD HasAttribute (const nsAString &aName, PRBool *aReturn)
NS_IMETHOD HasAttributeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, PRBool *aReturn)
NS_IMETHOD HasAttributes (PRBool *aHasAttributes)
NS_IMETHOD HasChildNodes (PRBool *aHasChildNodes)
PRBool HasFlag (PtrBits aFlag) const
PRBool HasProperties () const
PRBool HasSameOwnerDoc (nsINode *aOther)
virtual PRInt32 IndexOf (nsINode *aPossibleChild) const
NS_IMETHOD InsertBefore (nsIDOMNode *aNewChild, nsIDOMNode *aRefChild, nsIDOMNode **aReturn)
virtual nsresult InsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify)
virtual PRInt32 IntrinsicState () const
 IsAttributeMapped (const nsIAtom *aAttribute) const
virtual PRBool IsDoneAddingChildren ()
PRBool IsEditable () const
virtual PRBool IsFocusable (PRInt32 *aTabIndex=nsnull)
virtual PRBool IsHTMLFocusable (PRBool *aIsFocusable, PRInt32 *aTabIndex)
PRBool IsHTMLLink (nsIURI **aURI) const
PRBool IsInDoc () const
PRBool IsInNativeAnonymousSubtree () const
virtual PRBool IsLink (nsIURI **aURI) const
PRBool IsNativeAnonymous () const
virtual PRBool IsNodeOfType (PRUint32 aFlags) const
NS_IMETHOD IsSupported (const nsAString &aFeature, const nsAString &aVersion, PRBool *aReturn)
nsresult JoinTextNodes (nsIContent *aFirst, nsIContent *aSecond)
nsresult LeaveLink (nsPresContext *aPresContext)
virtual nsresult MaybeTriggerAutoLink (nsIDocShell *aShell)
virtual PRBool MayHaveFrame () const
nsINodeInfo * NodeInfo () const
nsIPrincipalNodePrincipal () const
NS_IMETHOD Normalize ()
 NS_HIDDEN_ (nsPresContext *) GetPresContext()
 NS_IMETHOD_ (PRBool) IsAttributeMapped(const nsIAtom *aAttribute) const
 nsGenericHTMLElement (nsINodeInfo *aNodeInfo)
virtual PRBool ParseAttribute (PRInt32 aNamespaceID, nsIAtom *aAttribute, const nsAString &aValue, nsAttrValue &aResult)
PRBool ParseDivAlignValue (const nsAString &aString, nsAttrValue &aResult) const
PRBool ParseTableCellHAlignValue (const nsAString &aString, nsAttrValue &aResult) const
PRBool ParseTableHAlignValue (const nsAString &aString, nsAttrValue &aResult) const
virtual void PerformAccesskey (PRBool aKeyCausesActivation, PRBool aIsTrustedEvent)
virtual nsresult PostHandleEvent (nsEventChainPostVisitor &aVisitor)
nsresult PostHandleEventForAnchors (nsEventChainPostVisitor &aVisitor)
PostQueryInterface (REFNSIID aIID, void **aInstancePtr)
virtual nsresult PreHandleEvent (nsEventChainPreVisitor &aVisitor)
nsresult PreHandleEventForAnchors (nsEventChainPreVisitor &aVisitor)
virtual void RecompileScriptEventListeners ()
NS_IMETHOD RemoveAttribute (const nsAString &aName)
NS_IMETHOD RemoveAttributeNode (nsIDOMAttr *aOldAttr, nsIDOMAttr **aReturn)
NS_IMETHOD RemoveAttributeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName)
NS_IMETHOD RemoveChild (nsIDOMNode *aOldChild, nsIDOMNode **aReturn)
virtual nsresult RemoveChildAt (PRUint32 aIndex, PRBool aNotify)
virtual nsresult RemoveEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)
virtual void RemoveFocus (nsPresContext *aPresContext)
virtual void RemoveMutationObserver (nsIMutationObserver *aMutationObserver)
NS_IMETHOD ReplaceChild (nsIDOMNode *aNewChild, nsIDOMNode *aOldChild, nsIDOMNode **aReturn)
virtual void SaveSubtreeState ()
nsresult ScrollIntoView (PRBool aTop)
virtual nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, nsIAtom *aPrefix, const nsAString &aValue, PRBool aNotify)
nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString &aValue, PRBool aNotify)
NS_METHOD SetAttribute (const nsAString &aName, const nsAString &aValue)
NS_IMETHOD SetAttributeNode (nsIDOMAttr *aNewAttr, nsIDOMAttr **aReturn)
NS_IMETHOD SetAttributeNodeNS (nsIDOMAttr *aNewAttr, nsIDOMAttr **aReturn)
NS_IMETHOD SetAttributeNS (const nsAString &aNamespaceURI, const nsAString &aQualifiedName, const nsAString &aValue)
nsresult SetClassName (const nsAString &aClassName)
nsresult SetContentEditable (const nsAString &aContentEditable)
nsresult SetDir (const nsAString &aDir)
void SetEditableFlag (PRBool aEditable)
void SetFlags (PtrBits aFlagsToSet)
virtual void SetFocus (nsPresContext *aContext)
nsresult SetId (const nsAString &aId)
NS_IMETHOD SetInlineStyleRule (nsICSSStyleRule *aStyleRule, PRBool aNotify)
virtual nsresult SetInnerHTML (const nsAString &aInnerHTML)
nsresult SetLang (const nsAString &aLang)
virtual PRBool SetMappedAttribute (nsIDocument *aDocument, nsIAtom *aName, nsAttrValue &aValue, nsresult *aRetval)
virtual void SetMayHaveFrame (PRBool aMayHaveFrame)
void SetNativeAnonymous ()
NS_IMETHOD SetNodeValue (const nsAString &aNodeValue)
NS_IMETHOD SetPrefix (const nsAString &aPrefix)
virtual nsresult SetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE, void **aOldValue=nsnull)
nsresult SetProperty (nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE)
virtual nsresult SetScriptTypeID (PRUint32 aLang)
nsresult SetScrollLeft (PRInt32 aScrollLeft)
nsresult SetScrollTop (PRInt32 aScrollTop)
NS_IMETHOD SetSpellcheck (PRBool aSpellcheck)
NS_IMETHOD SetTabIndex (PRInt32 aTabIndex)
nsresult SetText (const nsAString &aStr, PRBool aNotify)
virtual nsresult SetText (const PRUnichar *aBuffer, PRUint32 aLength, PRBool aNotify)
nsresult SetTitle (const nsAString &aTitle)
nsIAtom * Tag () const
virtual PRBool TextIsOnlyWhitespace ()
virtual PRUint32 TextLength ()
virtual void UnbindFromTree (PRBool aDeep=PR_TRUE, PRBool aNullParent=PR_TRUE)
virtual nsresult UnsetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, PRBool aNotify)
void UnsetFlags (PtrBits aFlagsToUnset)
virtual void * UnsetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
void * UnsetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
virtual void UpdateEditableState ()
NS_IMETHOD WalkContentStyleRules (nsRuleWalker *aRuleWalker)
virtual nsresult WillHandleEvent (nsEventChainPostVisitor &aVisitor)
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static nsresult DispatchClickEvent (nsPresContext *aPresContext, nsInputEvent *aSourceEvent, nsIContent *aTarget, PRBool aFullDispatch, nsEventStatus *aStatus)
static nsresult DispatchEvent (nsPresContext *aPresContext, nsEvent *aEvent, nsIContent *aTarget, PRBool aFullDispatch, nsEventStatus *aStatus)
static nsresult doInsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify, nsIContent *aParent, nsIDocument *aDocument, nsAttrAndChildArray &aChildArray)
static nsresult doPreHandleEvent (nsIContent *aContent, nsEventChainPreVisitor &aVisitor)
static nsresult doRemoveChild (nsIDOMNode *aOldChild, nsIContent *aParent, nsIDocument *aDocument, nsIDOMNode **aReturn)
static nsresult doRemoveChildAt (PRUint32 aIndex, PRBool aNotify, nsIContent *aKid, nsIContent *aParent, nsIDocument *aDocument, nsAttrAndChildArray &aChildArray)
static nsresult doReplaceOrInsertBefore (PRBool aReplace, nsIDOMNode *aNewChild, nsIDOMNode *aRefChild, nsIContent *aParent, nsIDocument *aDocument, nsIDOMNode **aReturn)
static PRBool FindAttributeDependence (const nsIAtom *aAttribute, const MappedAttributeEntry *const aMaps[], PRUint32 aMapCount)
static nsGenericHTMLElementFromContent (nsIContent *aContent)
static already_AddRefed
< nsIDOMNSFeatureFactory > 
GetDOMFeatureFactory (const nsAString &aFeature, const nsAString &aVersion)
static nsIFormControlFrameGetFormControlFrameFor (nsIContent *aContent, nsIDocument *aDocument, PRBool aFlushContent)
static nsresult GetHashFromHrefString (const nsAString &aHref, nsAString &aHash)
static nsresult GetHostFromHrefString (const nsAString &aHref, nsAString &aHost)
static nsresult GetHostnameFromHrefString (const nsAString &aHref, nsAString &aHostname)
static nsresult GetLayoutHistoryAndKey (nsGenericHTMLElement *aContent, PRBool aRead, nsILayoutHistoryState **aState, nsACString &aKey)
static nsresult GetPathnameFromHrefString (const nsAString &aHref, nsAString &aPathname)
static nsresult GetPortFromHrefString (const nsAString &aHref, nsAString &aPort)
static nsIFrameGetPrimaryFrameFor (nsIContent *aContent, nsIDocument *aDocument)
static nsresult GetPrimaryPresState (nsGenericHTMLElement *aContent, nsPresState **aPresState)
static nsresult GetProtocolFromHrefString (const nsAString &aHref, nsAString &aProtocol, nsIDocument *aDocument)
static nsresult GetSearchFromHrefString (const nsAString &aHref, nsAString &aSearch)
static PRBool InNavQuirksMode (nsIDocument *aDoc)
static nsresult InternalGetFeature (nsISupports *aObject, const nsAString &aFeature, const nsAString &aVersion, nsISupports **aReturn)
static nsresult InternalIsSupported (nsISupports *aObject, const nsAString &aFeature, const nsAString &aVersion, PRBool *aReturn)
static void MapBackgroundAttributesInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapBackgroundInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapBGColorInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapCommonAttributesInto (const nsMappedAttributes *aAttributes, nsRuleData *aRuleData)
static void MapDivAlignAttributeInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapImageAlignAttributeInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapImageBorderAttributeInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapImageMarginAttributeInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapImageSizeAttributesInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static void MapNoAttributesInto (const nsMappedAttributes *aAttributes, nsRuleData *aRuleData)
static void MapScrollingAttributeInto (const nsMappedAttributes *aAttributes, nsRuleData *aData)
static PRBool ParseAlignValue (const nsAString &aString, nsAttrValue &aResult)
static PRBool ParseFrameborderValue (const nsAString &aString, nsAttrValue &aResult)
static PRBool ParseImageAttribute (nsIAtom *aAttribute, const nsAString &aString, nsAttrValue &aResult)
static PRBool ParseScrollingValue (const nsAString &aString, nsAttrValue &aResult)
static void ParseStyleAttribute (nsIContent *aContent, const nsAString &aValue, nsAttrValue &aResult, PRBool aForceInDataDoc)
static PRBool ParseTableVAlignValue (const nsAString &aString, nsAttrValue &aResult)
static PRBool RestoreFormControlState (nsGenericHTMLElement *aContent, nsIFormControl *aControl)
static nsresult SetHashInHrefString (const nsAString &aHref, const nsAString &aHash, nsAString &aResult)
static nsresult SetHostInHrefString (const nsAString &aHref, const nsAString &aHost, nsAString &aResult)
static nsresult SetHostnameInHrefString (const nsAString &aHref, const nsAString &aHostname, nsAString &aResult)
static nsresult SetPathnameInHrefString (const nsAString &aHref, const nsAString &aHostname, nsAString &aResult)
static nsresult SetPortInHrefString (const nsAString &aHref, const nsAString &aPort, nsAString &aResult)
static nsresult SetProtocolInHrefString (const nsAString &aHref, const nsAString &aProtocol, nsAString &aResult)
static nsresult SetSearchInHrefString (const nsAString &aHref, const nsAString &aSearch, nsAString &aResult)
static PRBool ShouldBlur (nsIContent *aContent)
static PRBool ShouldFocus (nsIContent *aContent)
static void Shutdown ()

Static Public Attributes

static const MappedAttributeEntry sBackgroundAttributeMap []
static const MappedAttributeEntry sBackgroundColorAttributeMap []
static const MappedAttributeEntry sCommonAttributeMap []
static const MappedAttributeEntry sDivAlignAttributeMap []
static const MappedAttributeEntry sImageAlignAttributeMap []
static const MappedAttributeEntry sImageBorderAttributeMap []
static const MappedAttributeEntry sImageMarginSizeAttributeMap []
static const MappedAttributeEntry sScrollingAttributeMap []
static PRInt32 sTabFocusModel = eTabFocus_any
static PRBool sTabFocusModelAppliesToXUL = PR_FALSE

Protected Types

enum  { kParentBitMask = 0x3 }
enum  ContentEditableTristate { eInherit = -1, eFalse = 0, eTrue = 1 }

Protected Member Functions

virtual nsresult AfterSetAttr (PRInt32 aNamespaceID, nsIAtom *aName, const nsAString *aValue, PRBool aNotify)
virtual nsresult BeforeSetAttr (PRInt32 aNamespaceID, nsIAtom *aName, const nsAString *aValue, PRBool aNotify)
PRBool CheckHandleEventForLinksPrecondition (nsEventChainVisitor &aVisitor, nsIURI **aURI) const
virtual nsINode::nsSlots * CreateSlots ()
nsSlots * FlagsAsSlots () const
virtual already_AddRefed
< nsIEditor > 
GetAssociatedEditor ()
virtual nsAttrInfo GetAttrInfo (PRInt32 aNamespaceID, nsIAtom *aName) const
void GetContentsAsText (nsAString &aText)
nsDOMSlotsGetDOMSlots ()
virtual nsresult GetEventListenerManagerForAttr (nsIEventListenerManager **aManager, nsISupports **aTarget, PRBool *aDefer)
nsDOMSlotsGetExistingDOMSlots () const
nsSlots * GetExistingSlots () const
virtual void GetLinkTarget (nsAString &aTarget)
< nsIMutationObserver * > * 
GetMutationObservers ()
nsSlots * GetSlots ()
PRBool HasSlots () const
virtual const nsAttrName * InternalGetExistingAttrNameFromQName (const nsAString &aStr) const
PRBool IsCurrentBodyElement ()
virtual PRBool IsEditableExternal () const
PRBool IsEditableInternal () const
PRBool IsEventName (nsIAtom *aName)
 NS_HIDDEN_ (ContentEditableTristate) GetContentEditableValue() const
 NS_HIDDEN_ (nsresult) GetEditorInternal(nsIEditor **aEditor)
 NS_HIDDEN_ (nsresult) GetEditor(nsIEditor **aEditor)
 NS_HIDDEN_ (nsresult) GetURIListAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) GetURIAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) SetIntAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) GetIntAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) SetBoolAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) GetBoolAttr(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) GetStringAttrWithDefault(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) SetAttrHelper(nsIAtom *aAttr
 NS_HIDDEN_ (nsresult) GetAttrHelper(nsIAtom *aAttr
nsresult PostHandleEventForLinks (nsEventChainPostVisitor &aVisitor)
nsresult PreHandleEventForLinks (nsEventChainPreVisitor &aVisitor)
void RegUnRegAccessKey (PRBool aDoReg)
nsresult ReparseStyleAttribute (PRBool aForceInDataDoc)
nsresult SetAttrAndNotify (PRInt32 aNamespaceID, nsIAtom *aName, nsIAtom *aPrefix, const nsAString &aOldValue, nsAttrValue &aParsedValue, PRBool aModification, PRBool aFireMutation, PRBool aNotify)
void SetElementFocus (PRBool aDoFocus)

Static Protected Member Functions

static void SyncEditorsOnSubtree (nsIContent *content)

Protected Attributes

nsIAtom * aBaseAttr
PRInt32 aDefault
const char * aDefault
nsIAtom nsAStringaResult
const char nsAStringaResult
PRInt32 aValue
PRInt32 PRInt32 * aValue
PRBool aValue
const nsAStringaValue
PRBool *aValue const
nsAttrAndChildArray mAttrsAndChildren
PtrBits mFlagsOrSlots
nsCOMPtr< nsINodeInfo > mNodeInfo
PtrBits mParentPtrBits

Private Member Functions

void ChangeEditableState (PRInt32 aChange)
PRBool IsEditableRoot () const


class nsNodeSupportsWeakRefTearoff
class nsNodeUtils
class nsNodeWeakReference

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

Generated by  Doxygen 1.6.0   Back to index