$OpenBSD$ index 2727733..06d0274 100644 --- parser/html/nsHtml5TreeOperation.h.orig Fri Feb 20 15:40:38 2015 +++ parser/html/nsHtml5TreeOperation.h Fri Feb 20 15:40:38 2015 @@ -435,6 +435,15 @@ class nsHtml5TreeOperation { mFour.integer = aInt; } + inline void Init(nsresult aRv) + { + NS_PRECONDITION(mOpCode == eTreeOpUninitialized, + "Op code must be uninitialized when initializing."); + NS_PRECONDITION(NS_FAILED(aRv), "Initialized tree op with non-failure."); + mOpCode = eTreeOpMarkAsBroken; + mOne.result = aRv; + } + inline void InitAddClass(nsIContentHandle* aNode, const char16_t* aClass) { NS_PRECONDITION(mOpCode == eTreeOpUninitialized, @@ -487,11 +496,12 @@ class nsHtml5TreeOperation { nsIAtom* atom; nsHtml5HtmlAttributes* attributes; nsHtml5DocumentMode mode; - char16_t* unicharPtr; + char16_t* unicharPtr; char* charPtr; nsHtml5TreeOperationStringPair* stringPair; nsAHtml5TreeBuilderState* state; int32_t integer; + nsresult result; } mOne, mTwo, mThree, mFour; };