1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/www/seamonkey2/files/extra-patch-nsSVGLibartGlyphMetricsFT.cpp
Joe Marcus Clarke 3ae3263b88 * Fix a compilation issue on -STABLE [1]
* Correct the path to libfreetype to fix an initialization error in the SVG
  renderer

Reported by:	adamw [1]
2004-02-26 09:41:11 +00:00

44 lines
1.3 KiB
C++

--- layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp.orig Thu Feb 26 02:13:35 2004
+++ layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp Thu Feb 26 03:27:56 2004
@@ -56,6 +57,13 @@
#include "nsArray.h"
#include "nsDataHashtable.h"
+
+#ifdef HAVE_CPP_2BYTE_WCHAR_T
+ typedef nsDependentString nsLiteralString;
+#else
+ typedef NS_ConvertASCIItoUTF16 nsLiteralString;
+#endif
+
/**
* \addtogroup libart_renderer Libart Rendering Engine
* @{
@@ -112,7 +120,7 @@
nsCOMPtr<nsISVGGlyphMetricsSource> mSource;
public:
- static nsDataHashtable<nsStringHashKey,nsDependentString*> sFontAliases;
+ static nsDataHashtable<nsStringHashKey,nsLiteralString*> sFontAliases;
};
/** @} */
@@ -120,7 +128,7 @@
//----------------------------------------------------------------------
// nsSVGLibartGlyphMetricsFT implementation:
-nsDataHashtable<nsStringHashKey,nsDependentString*>
+nsDataHashtable<nsStringHashKey,nsLiteralString*>
nsSVGLibartGlyphMetricsFT::sFontAliases;
@@ -406,7 +414,7 @@
}
else {
// try alias if there is one:
- nsDependentString *alias = nsnull;
+ nsLiteralString *alias = nsnull;
nsSVGLibartGlyphMetricsFT::sFontAliases.Get(NS_ConvertUTF8toUCS2(family_name),
&alias);
if (alias) {