diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index eeb6915bc218..3006c73e5cba 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -1300,6 +1300,7 @@ public: /** * Performs an in-place edge padding operation. + * aRegion is specified in device space. */ virtual void PadEdges(const IntRegion& aRegion); diff --git a/gfx/layers/client/MultiTiledContentClient.cpp b/gfx/layers/client/MultiTiledContentClient.cpp index 7155b602f6a9..6c0ba6062bc6 100644 --- a/gfx/layers/client/MultiTiledContentClient.cpp +++ b/gfx/layers/client/MultiTiledContentClient.cpp @@ -270,7 +270,7 @@ void ClientMultiTiledLayerBuffer::Update(const nsIntRegion& newValidRegion, // Edge padding allows us to avoid resampling artifacts if (gfxPrefs::TileEdgePaddingEnabled() && mResolution == 1) { - drawTarget->PadEdges(newValidRegion); + drawTarget->PadEdges(newValidRegion.MovedBy(-mTilingOrigin)); } // Reset