Bug 1254020 - Always compute theme scaling factor when per-monitor dpi aware, even if only a single display is currently present. r=emk a=ritu

MozReview-Commit-ID: 9KUukZ7tcxu
This commit is contained in:
Jonathan Kew 2016-03-24 11:10:17 +00:00
parent daeb4f338c
commit c9c9658327

View File

@ -1553,7 +1553,7 @@ AssumeThemePartAndStateAreTransparent(int32_t aPart, int32_t aState)
static inline double
GetThemeDpiScaleFactor(nsIFrame* aFrame)
{
if (WinUtils::IsPerMonitorDPIAware() && GetSystemMetrics(SM_CMONITORS) > 1) {
if (WinUtils::IsPerMonitorDPIAware()) {
nsIWidget* rootWidget = aFrame->PresContext()->GetRootWidget();
if (rootWidget) {
double systemScale = WinUtils::SystemScaleFactor();