Bug 1189565 - Send resize events when backing scale factor changes. r=mstange

This commit is contained in:
Steven Michaud 2015-08-28 15:48:04 -05:00
parent 87407424dc
commit 1bd07d55cd
2 changed files with 6 additions and 0 deletions

View File

@ -948,6 +948,9 @@ nsChildView::BackingScaleFactorChanged()
if (presShell) {
presShell->BackingScaleFactorChanged();
}
// When the backing scale factor changes, so does our size in device pixels
// (though not in display pixels).
ReportSizeEvent();
}
}

View File

@ -1704,6 +1704,9 @@ nsCocoaWindow::BackingScaleFactorChanged()
if (presShell) {
presShell->BackingScaleFactorChanged();
}
// When the backing scale factor changes, so does our size in device pixels
// (though not in display pixels).
ReportSizeEvent();
}
int32_t