Bug 1453795 - Parser/HTML - Initialize member fields in classes/ structures. r=hsivonen

This commit is contained in:
Andi-Bogdan Postelnicu
2018-06-14 11:46:13 +03:00
parent 30289bbc50
commit 318baca59d
6 changed files with 70 additions and 10 deletions

View File

@@ -126,9 +126,29 @@ nsHtml5Tokenizer::nsHtml5Tokenizer(nsHtml5TreeBuilder* tokenHandler,
bool viewingXmlSource)
: tokenHandler(tokenHandler)
, encodingDeclarationHandler(nullptr)
, lastCR(false)
, stateSave(0)
, returnStateSave(0)
, index(0)
, forceQuirks(false)
, additional(u'\0')
, entCol(0)
, firstCharKey(0)
, lo(0)
, hi(0)
, candidate(0)
, charRefBufMark(0)
, value(0)
, seenDigits(false)
, cstart(0)
, strBufLen(0)
, charRefBuf(jArray<char16_t, int32_t>::newJArray(32))
, charRefBufLen(0)
, bmpChar(jArray<char16_t, int32_t>::newJArray(1))
, astralChar(jArray<char16_t, int32_t>::newJArray(2))
, endTagExpectation(nullptr)
, endTagExpectationAsArray{}
, endTag(false)
, containsHyphen(false)
, tagName(nullptr)
, nonInternedTagName(new nsHtml5ElementName())
@@ -140,6 +160,11 @@ nsHtml5Tokenizer::nsHtml5Tokenizer(nsHtml5TreeBuilder* tokenHandler,
, attributes(tokenHandler->HasBuilder() ? new nsHtml5HtmlAttributes(0)
: nullptr)
, newAttributesEachTime(!tokenHandler->HasBuilder())
, shouldSuspend(false)
, confident(false)
, line(0)
, attributeLine(0)
, interner(nullptr)
, viewingXmlSource(viewingXmlSource)
{
MOZ_COUNT_CTOR(nsHtml5Tokenizer);