mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 616421 preparation - Make bogus tree op enum crashes distinct from bogus pointers in append tree op. r=smaug.
This commit is contained in:
parent
ff7a2bd052
commit
ba247c6cd4
@ -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
|
||||
|
@ -16,9 +16,7 @@ class nsHtml5StateSnapshot;
|
||||
class nsHtml5DocumentBuilder;
|
||||
|
||||
enum eHtml5TreeOperation {
|
||||
#ifdef DEBUG
|
||||
eTreeOpUninitialized,
|
||||
#endif
|
||||
// main HTML5 ops
|
||||
eTreeOpAppend,
|
||||
eTreeOpDetach,
|
||||
|
Loading…
Reference in New Issue
Block a user