mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866265 - Fix setting the resolution on hi-dpi B2G devices (followup to bug 883646). r=kentuckyfriedtakahe
This commit is contained in:
parent
0f4cee0b63
commit
32ed87d2b3
@ -1529,7 +1529,10 @@ TabChild::ProcessUpdateFrame(const FrameMetrics& aFrameMetrics)
|
||||
utils->SetScrollPositionClampingScrollPortSize(
|
||||
cssCompositedRect.width, cssCompositedRect.height);
|
||||
ScrollWindowTo(window, aFrameMetrics.mScrollOffset);
|
||||
CSSToScreenScale resolution = aFrameMetrics.CalculateResolution();
|
||||
LayoutDeviceToLayerScale resolution =
|
||||
aFrameMetrics.CalculateResolution()
|
||||
/ aFrameMetrics.mDevPixelsPerCSSPixel
|
||||
* ScreenToLayerScale(1);
|
||||
utils->SetResolution(resolution.scale, resolution.scale);
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> domDoc;
|
||||
|
Loading…
Reference in New Issue
Block a user