[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:55:32 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 90165a45d06605376af15aa46f3d91592fe3c575
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Oct 28 20:51:08 2002 +0000
Fixed crasher.
* WebCoreSupport.subproj/WebTextRenderer.m:
(-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index a84c9bb..1f5df25 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,10 @@
+2002-10-28 Richard Williamson <rjw at apple.com>
+
+ Fixed crasher.
+
+ * WebCoreSupport.subproj/WebTextRenderer.m:
+ (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
2002-10-28 John Sullivan <sullivan at apple.com>
* Bookmarks.subproj/WebBookmark.h:
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index a84c9bb..1f5df25 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,10 @@
+2002-10-28 Richard Williamson <rjw at apple.com>
+
+ Fixed crasher.
+
+ * WebCoreSupport.subproj/WebTextRenderer.m:
+ (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
2002-10-28 John Sullivan <sullivan at apple.com>
* Bookmarks.subproj/WebBookmark.h:
diff --git a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
index adb4cb7..8672385 100644
--- a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
+++ b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
@@ -668,8 +668,11 @@ static void _drawGlyphs(NSFont *font, NSColor *color, CGGlyph *glyphs, CGSize *a
int padPerSpace = 0;
int numGlyphs = 0;
- if (len <= 0)
+ if (len <= 0){
+ if (_numGlyphs)
+ *_numGlyphs = 0;
return 0;
+ }
// If the padding is non-zero, count the number of spaces in the string
// and divide that by the padding for per space addition.
@@ -707,9 +710,9 @@ static void _drawGlyphs(NSFont *font, NSColor *color, CGGlyph *glyphs, CGSize *a
break;
}
- if (IsNonBaseChar(c)) {
- return [self slowFloatWidthForCharacters: &characters[pos] stringLength: stringLength-pos fromCharacterPostion: 0 numberOfCharacters: len applyRounding: applyRounding];
- }
+ //if (IsNonBaseChar(c)) {
+ // return [self slowFloatWidthForCharacters: &characters[pos] stringLength: stringLength-pos fromCharacterPostion: 0 numberOfCharacters: len applyRounding: applyRounding];
+ //}
glyphID = glyphForCharacter(characterToGlyphMap, c);
if (glyphID == nonGlyphID) {
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list