Fix for 169373, make HTML form controls fully support native look on Windows XP. r/sr=hewitt/blake
git-svn-id: svn://10.0.0.236/trunk@130192 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1124,6 +1124,16 @@ nsXMLContentSink::ProcessHeaderData(nsIAtom* aHeader,const nsAString& aValue,nsI
|
||||
else if (aHeader == nsHTMLAtoms::link) {
|
||||
rv = ProcessLink(aContent, aValue);
|
||||
}
|
||||
else if (aHeader == nsHTMLAtoms::msthemecompatible) {
|
||||
// Disable theming for the presshell if the value is no.
|
||||
nsAutoString value(aValue);
|
||||
if (value.EqualsIgnoreCase("no")) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
mDocument->GetShellAt(0, getter_AddRefs(shell));
|
||||
if (shell)
|
||||
shell->DisableThemeSupport();
|
||||
}
|
||||
}
|
||||
else if (mParser) {
|
||||
// we also need to report back HTTP-EQUIV headers to the channel
|
||||
// so that it can process things like pragma: no-cache or other
|
||||
|
||||
Reference in New Issue
Block a user