[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
rjw
rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:36:53 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 04ab07de31b2375a37b90f26e82fba7a69a43b63
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Sep 6 23:12:46 2002 +0000
Fixed symbol lookup problem. NSLookupAndBindSymbol() dies horribly
if symbol is missing. Use NSIsSymbolNameDefined() first to check if
symbol is present.
* WebCoreSupport.subproj/WebTextRendererFactory.m:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 3a0a551..a6a644e 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,11 @@
+2002-09-06 Richard Williamson (Home) <rjw at apple.com>
+
+ Fixed symbol lookup problem. NSLookupAndBindSymbol() dies horribly
+ if symbol is missing. Use NSIsSymbolNameDefined() first to check if
+ symbol is present.
+
+ * WebCoreSupport.subproj/WebTextRendererFactory.m:
+
2002-09-06 Darin Adler <darin at apple.com>
Fix some minor anomalies and leaks.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 3a0a551..a6a644e 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,11 @@
+2002-09-06 Richard Williamson (Home) <rjw at apple.com>
+
+ Fixed symbol lookup problem. NSLookupAndBindSymbol() dies horribly
+ if symbol is missing. Use NSIsSymbolNameDefined() first to check if
+ symbol is present.
+
+ * WebCoreSupport.subproj/WebTextRendererFactory.m:
+
2002-09-06 Darin Adler <darin at apple.com>
Fix some minor anomalies and leaks.
diff --git a/WebKit/WebCoreSupport.subproj/WebTextRendererFactory.m b/WebKit/WebCoreSupport.subproj/WebTextRendererFactory.m
index a7e4d63..80988ec 100644
--- a/WebKit/WebCoreSupport.subproj/WebTextRendererFactory.m
+++ b/WebKit/WebCoreSupport.subproj/WebTextRendererFactory.m
@@ -130,19 +130,22 @@
// Turn off auto expiration of glyphs in CG's cache
// and increase the cache size.
- NSSymbol symbol = NSLookupAndBindSymbol("_CGFontCacheSetShouldAutoExpire");
- if (symbol != NULL) {
- void (*functionPtr)(CGFontCache *,bool) = NSAddressOfSymbol(symbol);
-
- CGFontCache *fontCache;
- fontCache = CGFontCacheCreate();
- CGFontCacheSetMaxSize (fontCache, 1024*1024);
- functionPtr (fontCache, false);
- CGFontCacheRelease(fontCache);
+ NSSymbol symbol = NULL;
+ if (NSIsSymbolNameDefined ("_CGFontCacheSetShouldAutoExpire")){
+ symbol = NSLookupAndBindSymbol("_CGFontCacheSetShouldAutoExpire");
+ if (symbol != NULL) {
+ void (*functionPtr)(CGFontCache *,bool) = NSAddressOfSymbol(symbol);
+
+ CGFontCache *fontCache;
+ fontCache = CGFontCacheCreate();
+ CGFontCacheSetMaxSize (fontCache, 1024*1024);
+ functionPtr (fontCache, false);
+ CGFontCacheRelease(fontCache);
+ }
}
- else {
+
+ if (symbol == NULL)
NSLog(@"CoreGraphics is missing call to disable glyph auto expiration. Pages will load more slowly.");
- }
}
ASSERT([[self sharedFactory] isKindOfClass:self]);
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list