mPaintingSuppressed = PR_TRUE;
PresShell::Freeze(){  nsCOMPtr<nsIDOMDocument> domDoc = do_QueryInterface(mDocument);  if (domDoc) {    EnumeratePlugins(domDoc, NS_LITERAL_STRING("object"), StopPluginInstance);    EnumeratePlugins(domDoc, NS_LITERAL_STRING("applet"), StopPluginInstance);    EnumeratePlugins(domDoc, NS_LITERAL_STRING("embed"), StopPluginInstance);  }  if (mCaret)    mCaret->SetCaretVisible(PR_FALSE);  if (mDocument)    mDocument->EnumerateSubDocuments(FreezeSubDocument, nsnull);}