# HG changeset patch # User Timothy Nikkel # Parent 0d717c02fd96a72485e7f2d7684164b29dcc7fdb Bug 1419608. Make SurfaceKey::SVGContext return a reference instead of a copy. diff --git a/image/SurfaceCache.h b/image/SurfaceCache.h --- a/image/SurfaceCache.h +++ b/image/SurfaceCache.h @@ -69,17 +69,17 @@ public: } SurfaceKey CloneWithSize(const IntSize& aSize) const { return SurfaceKey(aSize, mSVGContext, mPlayback, mFlags); } const IntSize& Size() const { return mSize; } - Maybe SVGContext() const { return mSVGContext; } + const Maybe& SVGContext() const { return mSVGContext; } PlaybackType Playback() const { return mPlayback; } SurfaceFlags Flags() const { return mFlags; } private: SurfaceKey(const IntSize& aSize, const Maybe& aSVGContext, PlaybackType aPlayback, SurfaceFlags aFlags)