зеркало из https://github.com/mozilla/gecko-dev.git
Bug 909887 - Initialize mLastMetrics.mDevPixelsPerCSSPixel to a sane value. r=botond
This commit is contained in:
Родитель
fd143fc064
Коммит
d8ab174d53
|
@ -425,6 +425,7 @@ TabChild::Observe(nsISupports *aSubject,
|
||||||
mLastMetrics.mViewport = CSSRect(CSSPoint(), kDefaultViewportSize);
|
mLastMetrics.mViewport = CSSRect(CSSPoint(), kDefaultViewportSize);
|
||||||
mLastMetrics.mCompositionBounds = ScreenIntRect(ScreenIntPoint(), mInnerSize);
|
mLastMetrics.mCompositionBounds = ScreenIntRect(ScreenIntPoint(), mInnerSize);
|
||||||
mLastMetrics.mZoom = mLastMetrics.CalculateIntrinsicScale();
|
mLastMetrics.mZoom = mLastMetrics.CalculateIntrinsicScale();
|
||||||
|
mLastMetrics.mDevPixelsPerCSSPixel = CSSToLayoutDeviceScale(mWidget->GetDefaultScale());
|
||||||
// We use ScreenToLayerScale(1) below in order to turn the
|
// We use ScreenToLayerScale(1) below in order to turn the
|
||||||
// async zoom amount into the gecko zoom amount.
|
// async zoom amount into the gecko zoom amount.
|
||||||
mLastMetrics.mCumulativeResolution =
|
mLastMetrics.mCumulativeResolution =
|
||||||
|
|
Загрузка…
Ссылка в новой задаче