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 ff7a2bd052
commit ba247c6cd4
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

View File

@ -16,9 +16,7 @@ class nsHtml5StateSnapshot;
class nsHtml5DocumentBuilder;
enum eHtml5TreeOperation {
#ifdef DEBUG
eTreeOpUninitialized,
#endif
// main HTML5 ops
eTreeOpAppend,
eTreeOpDetach,