mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 909887 - Initialize mLastMetrics.mDevPixelsPerCSSPixel to a sane value. r=botond
This commit is contained in:
parent
fd143fc064
commit
d8ab174d53
@ -425,6 +425,7 @@ TabChild::Observe(nsISupports *aSubject,
|
||||
mLastMetrics.mViewport = CSSRect(CSSPoint(), kDefaultViewportSize);
|
||||
mLastMetrics.mCompositionBounds = ScreenIntRect(ScreenIntPoint(), mInnerSize);
|
||||
mLastMetrics.mZoom = mLastMetrics.CalculateIntrinsicScale();
|
||||
mLastMetrics.mDevPixelsPerCSSPixel = CSSToLayoutDeviceScale(mWidget->GetDefaultScale());
|
||||
// We use ScreenToLayerScale(1) below in order to turn the
|
||||
// async zoom amount into the gecko zoom amount.
|
||||
mLastMetrics.mCumulativeResolution =
|
||||
|
Loading…
Reference in New Issue
Block a user