summaryrefslogtreecommitdiff
path: root/gfx/2d/Factory.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-05-02 20:28:36 +0000
committerMoonchild <moonchild@palemoon.org>2021-05-02 20:28:36 +0000
commit616b39413d570fd98a9a300483a3b657a00fa43b (patch)
tree8398d6fb6f9a491c871532e91aaf84ef1b50d1c7 /gfx/2d/Factory.cpp
parentcd1f7241353c35627672dc3f6f73eb8bbd5f4925 (diff)
downloaduxp-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.cpp9
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);