Bug 909887 - Initialize mLastMetrics.mDevPixelsPerCSSPixel to a sane value. r=botond

This commit is contained in:
Kartikaya Gupta 2013-09-13 00:05:34 -04:00
Родитель fd143fc064
Коммит d8ab174d53
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -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 =