зеркало из https://github.com/mozilla/gecko-dev.git
bug 841470 - don't call AppUnitsPerDevPixelChanged unless the value has actually changed. r=roc
This commit is contained in:
Родитель
7eb2fee062
Коммит
b7232abf33
|
@ -1660,7 +1660,9 @@ nsPresContext::UIResolutionChangedInternal()
|
|||
mPendingUIResolutionChanged = false;
|
||||
|
||||
mDeviceContext->CheckDPIChange();
|
||||
if (mCurAppUnitsPerDevPixel != AppUnitsPerDevPixel()) {
|
||||
AppUnitsPerDevPixelChanged();
|
||||
}
|
||||
|
||||
mDocument->EnumerateSubDocuments(UIResolutionChangedSubdocumentCallback,
|
||||
nullptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче