bug 841470 - don't call AppUnitsPerDevPixelChanged unless the value has actually changed. r=roc

This commit is contained in:
Jonathan Kew 2013-02-17 21:27:24 +00:00
Родитель 7eb2fee062
Коммит b7232abf33
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1660,7 +1660,9 @@ nsPresContext::UIResolutionChangedInternal()
mPendingUIResolutionChanged = false;
mDeviceContext->CheckDPIChange();
AppUnitsPerDevPixelChanged();
if (mCurAppUnitsPerDevPixel != AppUnitsPerDevPixel()) {
AppUnitsPerDevPixelChanged();
}
mDocument->EnumerateSubDocuments(UIResolutionChangedSubdocumentCallback,
nullptr);