mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 883646 - Scale the critical displayport by the widget scale as well. r=Cwiiis
This commit is contained in:
parent
1ec7f38b9a
commit
469268e52f
@ -57,8 +57,9 @@ ClientTiledThebesLayer::BeginPaint()
|
||||
|
||||
// Compute the critical display port in layer space.
|
||||
mPaintData.mLayerCriticalDisplayPort.SetEmpty();
|
||||
const FrameMetrics& metrics = GetParent()->GetFrameMetrics();
|
||||
const gfx::Rect& criticalDisplayPort =
|
||||
GetParent()->GetFrameMetrics().mCriticalDisplayPort.ToUnknownRect();
|
||||
(metrics.mCriticalDisplayPort * metrics.mDevPixelsPerCSSPixel).ToUnknownRect();
|
||||
if (!criticalDisplayPort.IsEmpty()) {
|
||||
gfxRect transformedCriticalDisplayPort =
|
||||
mPaintData.mTransformScreenToLayer.TransformBounds(
|
||||
|
Loading…
x
Reference in New Issue
Block a user