Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Pull in parts from previous fix for bug 141261. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson a=valeski, adt
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -864,9 +864,21 @@ NS_IMETHODIMP StyleSetImpl::EnableQuirkStyleSheet(PRBool aEnable)
|
||||
}
|
||||
}
|
||||
}
|
||||
NS_ASSERTION(mQuirkStyleSheet, "no quirk stylesheet");
|
||||
if (mQuirkStyleSheet) {
|
||||
#if defined(DEBUG_warren) || defined(DEBUG_attinasi)
|
||||
printf( "%s Quirk StyleSheet\n", aEnable ? "Enabling" : "Disabling" );
|
||||
#endif
|
||||
#ifdef DEBUG_dbaron // XXX Make this |DEBUG| once it stops firing.
|
||||
PRUint32 count = 0;
|
||||
if (mAgentRuleProcessors)
|
||||
mAgentRuleProcessors->Count(&count);
|
||||
PRBool enabledNow;
|
||||
mQuirkStyleSheet->GetEnabled(enabledNow);
|
||||
NS_ASSERTION(count == 0 || aEnable == enabledNow,
|
||||
"enabling/disabling quirk stylesheet too late");
|
||||
if (count != 0 && aEnable == enabledNow)
|
||||
printf("WARNING: We set the quirks mode too many times.\n"); // we do!
|
||||
#endif
|
||||
mQuirkStyleSheet->SetEnabled(aEnable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user