pkgsrc/mail/thunderbird52/patches/patch-mozilla_image_Downscaler.h
ryoon 52f373d9e6 mail/thunderbird52: import thunderbird52-52.9.1nb3
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version uses the gtk2 toolkit.
2018-12-16 08:29:48 +00:00

33 lines
1.1 KiB
C++

$NetBSD: patch-mozilla_image_Downscaler.h,v 1.1 2018/12/16 08:29:48 ryoon Exp $
--- mozilla/image/Downscaler.h.orig 2017-04-14 04:53:09.000000000 +0000
+++ mozilla/image/Downscaler.h
@@ -154,14 +154,14 @@ private:
class Downscaler
{
public:
- explicit Downscaler(const nsIntSize&)
+ explicit Downscaler(const nsIntSize&) : mScale(1.0, 1.0)
{
MOZ_RELEASE_ASSERT(false, "Skia is not enabled");
}
- const nsIntSize& OriginalSize() const { return nsIntSize(); }
- const nsIntSize& TargetSize() const { return nsIntSize(); }
- const gfxSize& Scale() const { return gfxSize(1.0, 1.0); }
+ const nsIntSize& OriginalSize() const { return mSize; }
+ const nsIntSize& TargetSize() const { return mSize; }
+ const gfxSize& Scale() const { return mScale; }
nsresult BeginFrame(const nsIntSize&, const Maybe<nsIntRect>&, uint8_t*, bool, bool = false)
{
@@ -177,6 +177,9 @@ public:
DownscalerInvalidRect TakeInvalidRect() { return DownscalerInvalidRect(); }
void ResetForNextProgressivePass() { }
const nsIntSize FrameSize() const { return nsIntSize(0, 0); }
+private:
+ nsIntSize mSize;
+ gfxSize mScale;
};
#endif // MOZ_ENABLE_SKIA