++presShell->mChangeNestCount; presShell->FrameConstructor()->CantRenderReplacedElement(mFrame); --presShell->mChangeNestCount;
mozAutoDocUpdate(presShell->mDocument, UPDATE_CONTENT_STATE, PR_TRUE); presShell->mDocument->ContentStatesChanged(mFrame->GetContent(), nsnull, NS_EVENT_STATE_BROKEN);
CantRenderReplacedElementEvent::HandleEvent(){  // Remove ourselves from the linked list  PresShell* presShell = OurPresShell();  CantRenderReplacedElementEvent** events = &presShell->mPostedReplaces;  while (*events) {    if (*events == this) {      *events = (*events)->mNext;      break;    }    events = &(*events)->mNext;    NS_ASSERTION(*events, "event not in queue");  }  // Make sure to prevent reflow while we're messing with frames  ++presShell->mChangeNestCount;  presShell->FrameConstructor()->CantRenderReplacedElement(mFrame);  --presShell->mChangeNestCount;}