request = (nsAttributeChangeRequest*)result;
request = new (result) nsAttributeChangeRequest();
PresShell::PostAttributeChange(nsIContent* aContent,                               PRInt32 aNameSpaceID,                                nsIAtom* aName,                               const nsString& aValue,                               PRBool aNotify,                               nsAttributeChangeType aType){ // ok we have a list of events to handle. Queue them up and handle them // after we finish reflow.  nsAttributeChangeRequest* request = nsnull;  void* result = AllocateFrame(sizeof(nsAttributeChangeRequest));  request = (nsAttributeChangeRequest*)result;  request->content = aContent;  NS_ADDREF(aContent);  request->nameSpaceID = aNameSpaceID;  request->name = aName;  request->value = aValue;  request->notify = aNotify;  request->type = aType;  request->next = nsnull;  if (mLastAttributeRequest) {    mLastAttributeRequest = mLastAttributeRequest->next = request;  } else {    mFirstAttributeRequest = request;    mLastAttributeRequest = request;  }  return NS_OK;}