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

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

create a transaction for removing aAttribute on aElement

Definition at line 4699 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))  
      nsAutoString value;
      result = (*aTxn)->Init(this, aElement, aAttribute, value, PR_TRUE);
  return result;

Generated by  Doxygen 1.6.0   Back to index