Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.

This commit is contained in:
Henri Sivonen
2012-03-24 13:34:42 +02:00
parent b8bbb20e93
commit 71efda6e2b
117 changed files with 2477 additions and 73 deletions

View File

@@ -677,11 +677,23 @@ nsHtml5TreeBuilder::StreamEnded()
void
nsHtml5TreeBuilder::NeedsCharsetSwitchTo(const nsACString& aCharset,
PRInt32 aCharsetSource)
PRInt32 aCharsetSource,
PRInt32 aLineNumber)
{
nsHtml5TreeOperation* treeOp = mOpQueue.AppendElement();
NS_ASSERTION(treeOp, "Tree op allocation failed.");
treeOp->Init(eTreeOpNeedsCharsetSwitchTo, aCharset, aCharsetSource);
treeOp->Init(eTreeOpNeedsCharsetSwitchTo,
aCharset,
aCharsetSource,
aLineNumber);
}
void
nsHtml5TreeBuilder::MaybeComplainAboutCharset(const char* aMsgId,
bool aError,
PRInt32 aLineNumber)
{
mOpQueue.AppendElement()->Init(aMsgId, aError, aLineNumber);
}
void