зеркало из https://github.com/mozilla/gecko-dev.git
bug 817454 - ensure PresContext's cached mAppUnitsPerDevPixel value is updated when backing resolution changes. r=roc
This commit is contained in:
Родитель
9ddf7fda2f
Коммит
17f8d8db67
|
@ -811,6 +811,8 @@ nsPresContext::AppUnitsPerDevPixelChanged()
|
||||||
// All cached style data must be recomputed.
|
// All cached style data must be recomputed.
|
||||||
MediaFeatureValuesChanged(eAlwaysRebuildStyle, NS_STYLE_HINT_REFLOW);
|
MediaFeatureValuesChanged(eAlwaysRebuildStyle, NS_STYLE_HINT_REFLOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mCurAppUnitsPerDevPixel = AppUnitsPerDevPixel();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1403,8 +1405,6 @@ nsPresContext::SetFullZoom(float aZoom)
|
||||||
AppUnitsPerDevPixelChanged();
|
AppUnitsPerDevPixelChanged();
|
||||||
|
|
||||||
mSupressResizeReflow = false;
|
mSupressResizeReflow = false;
|
||||||
|
|
||||||
mCurAppUnitsPerDevPixel = AppUnitsPerDevPixel();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float
|
float
|
||||||
|
|
Загрузка…
Ссылка в новой задаче