diff --git a/gfx/2d/Factory.cpp b/gfx/2d/Factory.cpp index 140b1c5a1b03..96eb41a301a1 100644 --- a/gfx/2d/Factory.cpp +++ b/gfx/2d/Factory.cpp @@ -264,15 +264,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 stride = GetAlignedStride<16>(sz.width, 4);