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

void nsIContent::UpdateEditableState (  )  [virtual, inherited]

Should be called when the node can become editable or when it can stop being editable (for example when its contentEditable attribute changes, when it is moved into an editable parent, ...).

Reimplemented in nsGenericHTMLElement.

Definition at line 424 of file nsGenericElement.cpp.

References nsINode::GetParent(), and nsINode::HasFlag().

Referenced by nsGenericElement::BindToTree().

  nsIContent *parent = GetParent();

  SetEditableFlag(parent && parent->HasFlag(NODE_IS_EDITABLE));

Generated by  Doxygen 1.6.0   Back to index