if (mInScript && !mInNotification && mCurrentContext && !mIsDemotingForm) {
if (mInScript && !mInNotification && mCurrentContext) {
HTMLContentSink::BeginUpdate(nsIDocument *aDocument){  nsresult result = NS_OK;  // If we're in a script and we didn't do the notification,  // something else in the script processing caused the   // notification to occur. Since this could result in frame  // creation, make sure we've flushed everything before we  // continue  if (mInScript && !mInNotification && mCurrentContext &&      !mIsDemotingForm) {    result = mCurrentContext->FlushTags(PR_TRUE);  }  return result;}