diff options
author | Moonchild <moonchild@palemoon.org> | 2021-05-02 20:28:36 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-05-02 20:28:36 +0000 |
commit | 616b39413d570fd98a9a300483a3b657a00fa43b (patch) | |
tree | 8398d6fb6f9a491c871532e91aaf84ef1b50d1c7 /gfx/2d/Factory.cpp | |
parent | cd1f7241353c35627672dc3f6f73eb8bbd5f4925 (diff) | |
download | uxp-616b39413d570fd98a9a300483a3b657a00fa43b.tar.gz |
Issue #1751 -- Remove XP_MACOSX conditionals and support files from /gfx
Diffstat (limited to 'gfx/2d/Factory.cpp')
-rw-r--r-- | gfx/2d/Factory.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gfx/2d/Factory.cpp b/gfx/2d/Factory.cpp index 22352b20c6..5bec8e9ad8 100644 --- a/gfx/2d/Factory.cpp +++ b/gfx/2d/Factory.cpp @@ -260,15 +260,6 @@ Factory::CheckSurfaceSize(const IntSize &sz, return false; } -#if defined(XP_MACOSX) - // CoreGraphics is limited to images < 32K in *height*, - // so clamp all surfaces on the Mac to that height - if (sz.height > SHRT_MAX) { - gfxDebug() << "Surface size too large (exceeds CoreGraphics limit)!"; - return false; - } -#endif - // assuming 4 bytes per pixel, make sure the allocation size // doesn't overflow a int32_t either CheckedInt<int32_t> stride = GetAlignedStride<16>(sz.width, 4); |