Allow theme CSS to distinguish between themed and non-themed in Windows - bug 431666 r=vlad r=dbaron
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user