Bug 1370737 - Track seen preformatted elements in the document encoder to maintain stack balance correctly irrespective of element visibility; r=bzbarsky

This commit is contained in:
Ehsan Akhgari
2017-06-12 15:20:44 -04:00
parent de1f843eff
commit 373ada68c3
10 changed files with 112 additions and 12 deletions

View File

@@ -76,8 +76,10 @@ NS_IMPL_ISUPPORTS(nsXMLContentSerializer, nsIContentSerializer)
NS_IMETHODIMP
nsXMLContentSerializer::Init(uint32_t aFlags, uint32_t aWrapColumn,
const char* aCharSet, bool aIsCopying,
bool aRewriteEncodingDeclaration)
bool aRewriteEncodingDeclaration,
bool* aNeedsPreformatScanning)
{
*aNeedsPreformatScanning = false;
mPrefixIndex = 0;
mColPos = 0;
mIndentOverflow = 0;