Ensure that the quirks stylesheet is enabled/disabled before we start creating frames so that we don't have to build the rule cascade twice. Remove old compatibility mode pref that only controlled a small part of what it should have. b=141261 sr=waterson r=jst
git-svn-id: svn://10.0.0.236/trunk@122112 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -495,17 +495,8 @@ nsHTMLDocument::CreateShell(nsIPresContext* aContext,
|
||||
nsIStyleSet* aStyleSet,
|
||||
nsIPresShell** aInstancePtrResult)
|
||||
{
|
||||
nsresult result = nsMarkupDocument::CreateShell(aContext,
|
||||
aViewManager,
|
||||
aStyleSet,
|
||||
aInstancePtrResult);
|
||||
|
||||
if (NS_SUCCEEDED(result)) {
|
||||
aContext->SetCompatibilityMode(((eDTDMode_strict== mDTDMode) ?
|
||||
eCompatibility_Standard :
|
||||
eCompatibility_NavQuirks));
|
||||
}
|
||||
return result;
|
||||
return doCreateShell(aContext, aViewManager, aStyleSet,
|
||||
eDTDMode_strict != mDTDMode, aInstancePtrResult);
|
||||
}
|
||||
|
||||
// The following Try*Charset will return PR_FALSE only if the charset source
|
||||
|
||||
Reference in New Issue
Block a user