summaryrefslogtreecommitdiffstats
path: root/www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-11-23 05:29:16 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-11-23 05:29:16 +0800
commit3da7e283a2e577fdddfb140f1e29e82284988c19 (patch)
tree09c16082a5b441957e9b5ab7aca9eb85833c2f81 /www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp
parentcdbb0ea9ca4bc1d9bc192750d8d25de141effd9a (diff)
downloadmarcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar.gz
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar.bz2
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar.lz
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar.xz
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.tar.zst
marcuscom-ports-3da7e283a2e577fdddfb140f1e29e82284988c19.zip
-- Marge lots of common mozilla-ports tasks into Makefile.common
o creation of plist (Disabled with NOGECKO_PLIST) o install (Disabled with NOGECKO_INSTALL) o many common post-patch routines - Expand post- pre- targets so ports and Makefile.common can use the same target - Makefile.common supports both ${FILESDIR}/mozconfig.in (if exists) and now has 3 new variables to add opions to .mozconfig [1] Ports can use the following: NOGECKO_INSTALL NOGECKO_PLIST Do not auto-create plist NOMOZCONFIG Use CONFIGURE_ARGS instead of .mozconfig MOZILLA_PLIST_DIRS Listing of directories to create plist and/or install MOZ_PIS_SCRIPTS List scripts listed in ${FILESDIR} to filter through MOZCONFIG_SED and install with mozilla PIS scripts. MOZ_SED_ARGS Add or replace to MOZ_SED_ARGS [1] MOZ_OPTIONS Add more configure arguments to .mozconfig MOZ_MK_OPTIONS Add more make arguments to .mozconfig MOZ_EXPORT Add export variables to .mozconfig if ${FILESDIR}/mozconfig.in exists and NOMOZCONFIG is not defined contents of ${FILESDIR}/mozconfig.in will be filtered through MOZCONFIG_SED and added the the end of .mozconfig I broke the following: o Optional extensions (irc, etc) , need to figure out how to handle this Todo: o Handle .desktop the install of .desktop files and icons o Handle Java plugins o Cleanup/Audit and moving any other common "things" into Makefile.common o (maybe) convert all the ${FILESDIR}/mozconfig.in to MOZ_OPTIONS/EXPORT variables o Add support for ports to set MOZILLA=PORTNAME-devel o Figure out how to get the rest of mozconfig-generic.in to work in MOZ_EXPORT, the following example does not work MOZ_EXPORT=CFLAGS="${CFLAGS}" if treats each flag in CFLAGS as a different flag and you end up with a bunch of export -O2, export -xxx instead of export -O2 -xxx -blah .... o Figure out why MOZ_OPIONS+=--prefix=${FAKEDIR} ends up in .mozconfig as --prefix=/fake instead of --prefix=${WRKDIR}/fake (--prefix is in mozconfig-generic.in for now) o testing testing TESTING git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5182 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp')
-rw-r--r--www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp b/www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp
new file mode 100644
index 000000000..84392bd4a
--- /dev/null
+++ b/www/mozilla/files/extra-patch2-nsSVGLibartGlyphMetricsFT.cpp
@@ -0,0 +1,50 @@
+$NetBSD: patch-by,v 1.2 2004/07/05 14:22:42 taya Exp $
+
+diff -ru ../Orig/mozilla/layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp ./layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp
+--- ../Orig/mozilla/layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp 2004-03-19 10:36:16.000000000 +0900
++++ ./layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp 2004-07-04 22:59:19.000000000 +0900
+@@ -155,15 +155,15 @@
+
+ static NS_NAMED_LITERAL_STRING(arial, "arial");
+ nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("helvetica"),
+- &arial);
++ (nsDependentString *)&arial);
+
+ static NS_NAMED_LITERAL_STRING(courier, "courier new");
+ nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("courier"),
+- &courier);
++ (nsDependentString *)&courier);
+
+ static NS_NAMED_LITERAL_STRING(times, "times new roman");
+ nsSVGLibartGlyphMetricsFT::sFontAliases.Put(NS_LITERAL_STRING("times"),
+- &times);
++ (nsDependentString *)&times);
+ }
+
+ void NS_FreeSVGLibartGlyphMetricsFTGlobals()
+@@ -440,19 +440,19 @@
+ return;
+ }
+
+- FTC_Image_Desc imageDesc;
+- imageDesc.font.face_id=(void*)font_data.font_entry.get(); // XXX do we need to addref?
++ FTC_ImageType imageDesc;
++ imageDesc->face_id = (FTC_FaceID)font_data.font_entry.get(); // XXX do we need to addref?
+ float twipstopixel = GetTwipsToPixels();
+ float scale = GetPixelScale();
+- imageDesc.font.pix_width = (int)((float)(font_data.font.size)*twipstopixel/scale);
+- imageDesc.font.pix_height = (int)((float)(font_data.font.size)*twipstopixel/scale);
+- imageDesc.image_type |= ftc_image_grays;
++ imageDesc->width = (int)((float)(font_data.font.size)*twipstopixel/scale);
++ imageDesc->height = (int)((float)(font_data.font.size)*twipstopixel/scale);
++ imageDesc->flags = 0;
+
+ // get the face
+ nsresult rv;
+ FTC_Manager mgr;
+ nsSVGLibartFreetype::ft2->GetFTCacheManager(&mgr);
+- rv = nsSVGLibartFreetype::ft2->ManagerLookupSize(mgr, &imageDesc.font, &mFace, nsnull);
++ rv = nsSVGLibartFreetype::ft2->ManagerLookupFace(mgr, imageDesc->face_id, &mFace);
+ NS_ASSERTION(mFace, "failed to get face/size");
+ }
+