Move presentation attributes into the UA level in non-HTML documents and a

separate preshint level in HTML.  Bug 234861, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@155949 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-05-05 00:30:57 +00:00
parent 72815e1e69
commit c0cd0937ba
9 changed files with 115 additions and 42 deletions

View File

@@ -392,6 +392,15 @@ nsHTMLDocument::ResetToURI(nsIURI *aURI, nsILoadGroup *aLoadGroup)
mContentType = "text/html";
}
nsStyleSet::sheetType
nsHTMLDocument::GetAttrSheetType()
{
if (IsXHTML()) {
return nsDocument::GetAttrSheetType();
}
return nsStyleSet::ePresHintSheet;
}
nsresult
nsHTMLDocument::CreateShell(nsIPresContext* aContext,