bug 314091 Fix users of mozAutoDocUpdate to actually declare a local variable,

so that the destructor doesn't get called immediately
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@183237 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2005-10-29 12:54:24 +00:00
parent 5f879d45c2
commit 8cc8c8248a
8 changed files with 9 additions and 9 deletions

View File

@@ -979,7 +979,7 @@ nsObjectLoadingContent::NotifyStateChanged(ObjectType aOldType,
PRInt32 changedBits = aOldState ^ newState;
{
mozAutoDocUpdate(doc, UPDATE_CONTENT_STATE, PR_TRUE);
mozAutoDocUpdate upd(doc, UPDATE_CONTENT_STATE, PR_TRUE);
doc->ContentStatesChanged(thisContent, nsnull, changedBits);
}
if (aSync) {