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

NS_IMETHODIMP nsEditor::CreateTxnForAddStyleSheet ( nsICSSStyleSheet *  aSheet,
AddStyleSheetTxn **  aTxn 
) [protected, inherited]

create a transaction for adding a style sheet

Definition at line 4785 of file nsEditor.cpp.

References TransactionFactory::GetNewTransaction().

  nsresult rv = TransactionFactory::GetNewTransaction(AddStyleSheetTxn::GetCID(), (EditTxn **)aTxn);
  if (NS_FAILED(rv))
    return rv;
  if (! *aTxn)

  return (*aTxn)->Init(this, aSheet);

Generated by  Doxygen 1.6.0   Back to index