Logo Search packages:      
Sourcecode: firefox-3.5 version File versions  Download package

NS_IMETHODIMP nsEditor::CreateTxnForSetAttribute ( nsIDOMElement aElement,
const nsAString aAttribute,
const nsAString aValue,
ChangeAttributeTxn **  aTxn 
) [protected, inherited]

create a transaction for setting aAttribute to aValue on aElement

Definition at line 4681 of file nsEditor.cpp.

References TransactionFactory::GetNewTransaction().

  nsresult result = NS_ERROR_NULL_POINTER;
  if (nsnull != aElement)
    result = TransactionFactory::GetNewTransaction(ChangeAttributeTxn::GetCID(), (EditTxn **)aTxn);
    if (NS_SUCCEEDED(result))  {
      result = (*aTxn)->Init(this, aElement, aAttribute, aValue, PR_FALSE);
  return result;

Generated by  Doxygen 1.6.0   Back to index