Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user