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

@@ -629,7 +629,8 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
case eTreeOpNeedsCharsetSwitchTo: {
char* str = mOne.charPtr;
PRInt32 charsetSource = mFour.integer;
aBuilder->NeedsCharsetSwitchTo(str, charsetSource);
PRInt32 lineNumber = mTwo.integer;
aBuilder->NeedsCharsetSwitchTo(str, charsetSource, (PRUint32)lineNumber);
return rv;
}
case eTreeOpUpdateStyleSheet: {
@@ -693,6 +694,13 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
}
return rv;
}
case eTreeOpMaybeComplainAboutCharset: {
char* msgId = mOne.charPtr;
bool error = mTwo.integer;
PRInt32 lineNumber = mThree.integer;
aBuilder->MaybeComplainAboutCharset(msgId, error, (PRUint32)lineNumber);
return rv;
}
case eTreeOpAddClass: {
nsIContent* node = *(mOne.node);
PRUnichar* str = mTwo.unicharPtr;