nsIReflowCommand* reflowCmd; nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, aFrame, nsIReflowCommand::StyleChanged, nsnull, aAttribute); if (NS_SUCCEEDED(rv)) { shell->AppendReflowCommand(reflowCmd); NS_RELEASE(reflowCmd);
if (NS_SUCCEEDED(rv)) { shell->AppendReflowCommand(reflowCmd); NS_RELEASE(reflowCmd); }
StyleChangeReflow(nsIPresContext* aPresContext,                  nsIFrame* aFrame,                  nsIAtom * aAttribute){  nsCOMPtr<nsIPresShell> shell;  aPresContext->GetShell(getter_AddRefs(shell));     nsIReflowCommand* reflowCmd;  nsresult rv = NS_NewHTMLReflowCommand(&reflowCmd, aFrame,                                        nsIReflowCommand::StyleChanged,                                        nsnull,                                        aAttribute);  if (NS_SUCCEEDED(rv)) {    shell->AppendReflowCommand(reflowCmd);    NS_RELEASE(reflowCmd);  }    /*    nsFrameState state;    aFrame->GetFrameState(&state);    state |= NS_FRAME_IS_DIRTY;    aFrame->SetFrameState(state);    nsIFrame* parent;    aFrame->GetParent(&parent);    parent->ReflowDirtyChild(shell, aFrame);*/}