diff --git a/gfx/layers/client/ClientTiledThebesLayer.cpp b/gfx/layers/client/ClientTiledThebesLayer.cpp index fdfa3946f11..9b211ea1adf 100644 --- a/gfx/layers/client/ClientTiledThebesLayer.cpp +++ b/gfx/layers/client/ClientTiledThebesLayer.cpp @@ -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(