diff --git a/image/SurfaceCache.cpp b/image/SurfaceCache.cpp index 3124435909c7..aaff0a0805c9 100644 --- a/image/SurfaceCache.cpp +++ b/image/SurfaceCache.cpp @@ -168,7 +168,7 @@ public: bool IsDecoded() const { return !IsPlaceholder() && mProvider->IsFinished(); } ImageKey GetImageKey() const { return mProvider->GetImageKey(); } - SurfaceKey GetSurfaceKey() const { return mProvider->GetSurfaceKey(); } + const SurfaceKey& GetSurfaceKey() const { return mProvider->GetSurfaceKey(); } nsExpirationState* GetExpirationState() { return &mExpirationState; } CostEntry GetCostEntry()