Allow theme CSS to distinguish between themed and non-themed in Windows - bug 431666 r=vlad r=dbaron

This commit is contained in:
Kai Liu
2008-08-18 10:33:08 -07:00
parent f889c32ca6
commit f040964d06
8 changed files with 22 additions and 0 deletions

View File

@@ -797,6 +797,11 @@ InitSystemMetrics()
sSystemMetrics->AppendElement(do_GetAtom("windows-compositor"));
}
rv = lookAndFeel->GetMetric(nsILookAndFeel::eMetric_WindowsClassic, metricResult);
if (NS_SUCCEEDED(rv) && metricResult) {
sSystemMetrics->AppendElement(do_GetAtom("windows-classic"));
}
return PR_TRUE;
}