summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-gfx_thebes_gfxFont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/patches/patch-gfx_thebes_gfxFont.cpp')
-rw-r--r--www/firefox/patches/patch-gfx_thebes_gfxFont.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-gfx_thebes_gfxFont.cpp b/www/firefox/patches/patch-gfx_thebes_gfxFont.cpp
new file mode 100644
index 00000000000..8779279b9bd
--- /dev/null
+++ b/www/firefox/patches/patch-gfx_thebes_gfxFont.cpp
@@ -0,0 +1,42 @@
+$NetBSD: patch-gfx_thebes_gfxFont.cpp,v 1.1 2014/05/28 15:11:29 pho Exp $
+
+Don't assume cocoa toolkit just because OS_ARCH is Darwin.
+
+--- gfx/thebes/gfxFont.cpp.orig 2014-05-06 22:55:35.000000000 +0000
++++ gfx/thebes/gfxFont.cpp
+@@ -40,7 +40,7 @@
+ #include "gfxSVGGlyphs.h"
+ #include "gfx2DGlue.h"
+
+-#if defined(XP_MACOSX)
++#if defined(MOZ_WIDGET_COCOA)
+ #include "nsCocoaFeatures.h"
+ #endif
+
+@@ -1297,7 +1297,7 @@ gfxFontFamily::ReadFaceNames(gfxPlatform
+
+ bool asyncFontLoaderDisabled = false;
+
+-#if defined(XP_MACOSX)
++#if defined(MOZ_WIDGET_COCOA)
+ // bug 975460 - async font loader crashes sometimes under 10.6, disable
+ if (!nsCocoaFeatures::OnLionOrLater()) {
+ asyncFontLoaderDisabled = true;
+@@ -4177,7 +4177,7 @@ gfxFontGroup::BuildFontList()
+ {
+ // "#if" to be removed once all platforms are moved to gfxPlatformFontList interface
+ // and subclasses of gfxFontGroup eliminated
+-#if defined(XP_MACOSX) || defined(XP_WIN) || defined(ANDROID)
++#if defined(MOZ_WIDGET_COCOA) || defined(XP_WIN) || defined(ANDROID)
+ ForEachFont(FindPlatformFont, this);
+
+ if (mFonts.Length() == 0) {
+@@ -5236,7 +5236,7 @@ gfxFontGroup::UpdateFontList()
+ mSkipDrawing = false;
+
+ // bug 548184 - need to clean up FT2, OS/2 platform code to use BuildFontList
+-#if defined(XP_MACOSX) || defined(XP_WIN) || defined(ANDROID)
++#if defined(MOZ_WIDGET_COCOA) || defined(XP_WIN) || defined(ANDROID)
+ BuildFontList();
+ #else
+ ForEachFont(FindPlatformFont, this);