Bug 616421 preparation - Make bogus tree op enum crashes distinct from bogus pointers in append tree op. r=smaug.

This commit is contained in:
Henri Sivonen
2014-09-15 14:50:12 +03:00
parent 4e11b5293f
commit 81214d3416
2 changed files with 1 additions and 5 deletions

View File

@@ -75,9 +75,7 @@ class MOZ_STACK_CLASS nsHtml5OtherDocUpdate {
};
nsHtml5TreeOperation::nsHtml5TreeOperation()
#ifdef DEBUG
: mOpCode(eTreeOpUninitialized)
#endif
{
MOZ_COUNT_CTOR(nsHtml5TreeOperation);
}
@@ -960,7 +958,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
return rv;
}
default: {
NS_NOTREACHED("Bogus tree op");
MOZ_CRASH("Bogus tree op");
}
}
return NS_OK; // keep compiler happy