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

nsHTMLSelectElement Class Reference

#include <nsHTMLSelectElement.h>

Inheritance diagram for nsHTMLSelectElement:

nsGenericHTMLFormElement nsIDOMHTMLSelectElement nsISelectElement nsGenericHTMLElement nsIFormControl nsIDOMHTMLElement nsISupports nsISupports nsISupports nsISupports nsIDOMElement nsIDOMNode nsGenericElement nsISupports nsIContent nsINode nsISupports

List of all members.

Detailed Description

Implementation of <select>

Definition at line 225 of file nsHTMLSelectElement.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

void add (in nsIDOMHTMLElement element, in nsIDOMHTMLElement before) raises (DOMException)
virtual nsresult AddEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)
virtual void AddMutationObserver (nsIMutationObserver *aMutationObserver)
nsresult AddScriptEventListener (nsIAtom *aEventName, const nsAString &aValue, PRBool aDefer=PR_TRUE)
virtual PRBool AllowDrop ()
nsIDOMNode appendChild (in nsIDOMNode newChild) raises (DOMException)
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
BeforeSetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString *aValue, PRBool aNotify)
virtual void BeginAddingChildren ()
virtual nsresult BindToTree (nsIDocument *aDocument, nsIContent *aParent, nsIContent *aBindingParent, PRBool aCompileEventHandlers)
void blur ()
PRBool CheckHandleEventForAnchorsPreconditions (nsEventChainVisitor &aVisitor)
PRBool CheckSelectSomething ()
virtual nsresult Clone (nsINodeInfo *aNodeInfo, nsINode **aResult) const
nsIDOMNode cloneNode (in boolean deep)
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 ()
void DispatchContentReset ()
virtual nsresult DispatchDOMEvent (nsEvent *aEvent, nsIDOMEvent *aDOMEvent, nsPresContext *aPresContext, nsEventStatus *aEventStatus)
void DispatchDOMEvent (const nsAString &aName)
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)
void FindSelectedIndex (PRInt32 aStartIndex)
void focus ()
virtual PRBool GetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, nsAString &aResult) const
virtual PRUint32 GetAttrCount () const
DOMString getAttribute (in DOMString name)
NS_IMETHOD GetAttribute (const nsAString &aName, nsAString &aReturn)
virtual nsChangeHint GetAttributeChangeHint (const nsIAtom *aAttribute, PRInt32 aModType) const
nsDOMAttributeMap * GetAttributeMap ()
virtual nsMapRuleToAttributesFunc GetAttributeMappingFunction () const
nsIDOMAttr getAttributeNode (in DOMString name)
NS_IMETHOD GetAttributeNode (const nsAString &aName, nsIDOMAttr **aReturn)
nsIDOMAttr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName)
NS_IMETHOD GetAttributeNodeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, nsIDOMAttr **aReturn)
DOMString getAttributeNS (in DOMString namespaceURI, in DOMString localName)
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)
PRInt32 GetContentDepth (nsIContent *aContent)
nsresult GetContentEditable (nsAString &aContentEditable)
nsIDocument * GetCurrentDoc () const
virtual PRUint32 GetDesiredIMEState ()
nsresult GetDir (nsAString &aDir)
nsIDocument * GetDocument () const
nsIDOMNodeList getElementsByTagName (in DOMString name)
NS_METHOD GetElementsByTagName (const nsAString &aTagname, nsIDOMNodeList **aReturn)
nsIDOMNodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMString localName)
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)
PRInt32 GetFirstChildOptionIndex (nsIContent *aOptions, PRInt32 aStartIndex, PRInt32 aEndIndex)
PRInt32 GetFirstOptionIndex (nsIContent *aOptions)
PtrBits GetFlags () const
NS_IMETHOD GetForm (nsIDOMHTMLFormElement **aForm)
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)
long getOptionIndex (in nsIDOMHTMLOptionElement aOption, in long aStartIndex, in boolean aForward)
PRInt32 GetOptionIndexAfter (nsIContent *aOptions)
PRInt32 GetOptionIndexAt (nsIContent *aOptions)
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)
nsISelectControlFrameGetSelectFrame ()
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
boolean hasAttribute (in DOMString name)
NS_IMETHOD HasAttribute (const nsAString &aName, PRBool *aReturn)
boolean hasAttributeNS (in DOMString namespaceURI, in DOMString localName)
NS_IMETHOD HasAttributeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName, PRBool *aReturn)
boolean hasAttributes ()
NS_IMETHOD HasAttributes (PRBool *aHasAttributes)
boolean hasChildNodes ()
NS_IMETHOD HasChildNodes (PRBool *aHasChildNodes)
PRBool HasFlag (PtrBits aFlag) const
PRBool HasProperties () const
PRBool HasSameOwnerDoc (nsINode *aOther)
virtual PRInt32 IndexOf (nsINode *aPossibleChild) const
nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild) raises (DOMException)
NS_IMETHOD InsertBefore (nsIDOMNode *aNewChild, nsIDOMNode *aRefChild, nsIDOMNode **aReturn)
virtual nsresult InsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify)
nsresult InsertOptionsIntoList (nsIContent *aOptions, PRInt32 aListIndex, PRInt32 aDepth)
nsresult InsertOptionsIntoListRecurse (nsIContent *aOptions, PRInt32 *aInsertIndex, PRInt32 aDepth)
virtual PRInt32 IntrinsicState () const
 IsAttributeMapped (const nsIAtom *aAttribute) const
PRBool IsCombobox ()
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
boolean isOptionDisabled (in long aIndex)
protected PRBool 
IsOptionSelectedByIndex (PRInt32 aIndex)
virtual PRBool IsSubmitControl () const
boolean isSupported (in DOMString feature, in DOMString version)
NS_IMETHOD IsSupported (const nsAString &aFeature, const nsAString &aVersion, PRBool *aReturn)
nsIDOMNode item (in unsigned long index)
nsresult JoinTextNodes (nsIContent *aFirst, nsIContent *aSecond)
nsresult LeaveLink (nsPresContext *aPresContext)
virtual nsresult MaybeTriggerAutoLink (nsIDocShell *aShell)
virtual PRBool MayHaveFrame () const
nsIDOMNode namedItem (in DOMString name)
nsINodeInfo * NodeInfo () const
nsIPrincipalNodePrincipal () const
void normalize ()
NS_IMETHOD Normalize ()
 NS_HIDDEN_ (nsPresContext *) GetPresContext()
 NS_IMETHOD_ (PRBool) IsAttributeMapped(const nsIAtom *aAttribute) const
 NS_IMETHOD_ (PRInt32) GetType() const
 nsHTMLSelectElement (nsINodeInfo *aNodeInfo, PRBool aFromParser=PR_FALSE)
void OnOptionSelected (nsISelectControlFrame *aSelectFrame, nsPresContext *aPresContext, PRInt32 aIndex, PRBool aSelected, PRBool aChangeOptionState, PRBool aNotify)
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)
PreHandleEvent (nsEventChainPreVisitor &aVisitor)
nsresult PreHandleEventForAnchors (nsEventChainPreVisitor &aVisitor)
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)
void RebuildOptionsArray ()
virtual void RecompileScriptEventListeners ()
void remove (in long index)
void removeAttribute (in DOMString name) raises (DOMException)
NS_IMETHOD RemoveAttribute (const nsAString &aName)
nsIDOMAttr removeAttributeNode (in nsIDOMAttr oldAttr) raises (DOMException)
NS_IMETHOD RemoveAttributeNode (nsIDOMAttr *aOldAttr, nsIDOMAttr **aReturn)
void removeAttributeNS (in DOMString namespaceURI, in DOMString localName) raises (DOMException)
NS_IMETHOD RemoveAttributeNS (const nsAString &aNamespaceURI, const nsAString &aLocalName)
nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException)
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)
nsresult RemoveOptionsFromList (nsIContent *aOptions, PRInt32 aListIndex, PRInt32 aDepth)
nsresult RemoveOptionsFromListRecurse (nsIContent *aOptions, PRInt32 aRemoveIndex, PRInt32 *aNumRemoved, PRInt32 aDepth)
nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild) raises (DOMException)
NS_IMETHOD ReplaceChild (nsIDOMNode *aNewChild, nsIDOMNode *aOldChild, nsIDOMNode **aReturn)
virtual PRBool RestoreState (nsPresState *aState)
void RestoreStateTo (nsSelectState *aNewSelected)
NS_IMETHOD SaveState ()
virtual void SaveSubtreeState ()
nsresult ScrollIntoView (PRBool aTop)
PRBool SelectSomething ()
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)
void setAttribute (in DOMString name, in DOMString value) raises (DOMException)
NS_METHOD SetAttribute (const nsAString &aName, const nsAString &aValue)
nsIDOMAttr setAttributeNode (in nsIDOMAttr newAttr) raises (DOMException)
NS_IMETHOD SetAttributeNode (nsIDOMAttr *aNewAttr, nsIDOMAttr **aReturn)
nsIDOMAttr setAttributeNodeNS (in nsIDOMAttr newAttr) raises (DOMException)
NS_IMETHOD SetAttributeNodeNS (nsIDOMAttr *aNewAttr, nsIDOMAttr **aReturn)
void setAttributeNS (in DOMString namespaceURI, in DOMString qualifiedName, in DOMString value) raises (DOMException)
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 *aPresContext)
NS_IMETHOD SetForm (nsIDOMHTMLFormElement *aForm, PRBool aRemoveFromForm, PRBool aNotify)
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)
boolean setOptionsSelectedByIndex (in long aStartIndex, in long aEndIndex, in boolean aIsSelected, in boolean aClearAll, in boolean aSetDisabled, in boolean aNotify)
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)
NS_IMETHOD SubmitNamesValues (nsIFormSubmission *aFormSubmission, nsIContent *aSubmitElement)
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 *aAttribute, 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)
void willAddOptions (in nsIContent aOptions, in nsIContent aParent, in long aContentIndex)
virtual nsresult WillHandleEvent (nsEventChainPostVisitor &aVisitor)
void willRemoveOptions (in nsIContent aParent, in long aContentIndex)
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=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 ()

Public Attributes

const unsigned short ATTRIBUTE_NODE = 2
readonly attribute
readonly attribute nsIBoxObject boxObject
const unsigned short CDATA_SECTION_NODE = 4
readonly attribute nsIDOMNodeList childNodes
attribute DOMString className
const unsigned short COMMENT_NODE = 8
attribute DOMString dir
attribute boolean disabled
const unsigned short DOCUMENT_FRAGMENT_NODE = 11
const unsigned short DOCUMENT_NODE = 9
const unsigned short DOCUMENT_TYPE_NODE = 10
const unsigned short ELEMENT_NODE = 1
const unsigned short ENTITY_NODE = 6
const unsigned short ENTITY_REFERENCE_NODE = 5
readonly attribute nsIDOMNode firstChild
readonly attribute
readonly attribute boolean hasOptGroups
attribute DOMString id
attribute DOMString lang
readonly attribute nsIDOMNode lastChild
attribute unsigned long length
readonly attribute DOMString localName
PRPackedBool mDisabledChanged
PRPackedBool mIsDoneAddingChildren
PRPackedBool mMutating
PRUint32 mNonOptionChildren
PRUint32 mOptGroupCount
nsRefPtr< nsHTMLOptionCollectionmOptions
nsRefPtr< nsSelectStatemRestoreState
PRInt32 mSelectedIndex
attribute boolean multiple
attribute DOMString name
readonly attribute DOMString namespaceURI
readonly attribute nsIDOMNode nextSibling
readonly attribute DOMString nodeName
readonly attribute unsigned short nodeType
attribute DOMString nodeValue
const unsigned short NOTATION_NODE = 12
readonly attribute
readonly attribute nsIDOMDocument ownerDocument
readonly attribute nsIDOMNode parentNode
attribute DOMString prefix
readonly attribute nsIDOMNode previousSibling
const unsigned short PROCESSING_INSTRUCTION_NODE = 7
attribute long selectedIndex
attribute long size
attribute long tabIndex
readonly attribute DOMString tagName
const unsigned short TEXT_NODE = 3
attribute DOMString title
readonly attribute DOMString type
attribute DOMString value

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)
PRBool CanBeDisabled () const
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)
void SetFocusAndScrollIntoView (nsPresContext *aPresContext)
void UpdateEditableFormControlState ()

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


class nsNodeSupportsWeakRefTearoff
class nsNodeUtils
class nsNodeWeakReference

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

Generated by  Doxygen 1.6.0   Back to index