[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:57:48 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 4265ecabbdc77e579d6d8fa9b8854547c8a73f59
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Nov 7 23:50:15 2002 +0000

            Fixed updating of status bar and activity window when
            loading plugin content as main document. (3084311)
    
            * LoadProgressMonitor.m:
            (-[LoadProgressMonitor resource:didReceiveContentLength:fromDataSource:]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2589 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 6d8c2ea..52fe651 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,16 @@
+2002-11-07  Richard Williamson  <rjw at apple.com>
+
+        * ChangeLog:
+        * WebCoreSupport.subproj/WebTextRenderer.m:
+        (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
+        (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
+2002-11-07  Richard Williamson  <rjw at apple.com>
+
+        * WebCoreSupport.subproj/WebTextRenderer.m:
+        (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
+        (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
 === Alexander-31 ===
 
 2002-11-07  Maciej Stachowiak  <mjs at apple.com>
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 6d8c2ea..52fe651 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,16 @@
+2002-11-07  Richard Williamson  <rjw at apple.com>
+
+        * ChangeLog:
+        * WebCoreSupport.subproj/WebTextRenderer.m:
+        (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
+        (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
+2002-11-07  Richard Williamson  <rjw at apple.com>
+
+        * WebCoreSupport.subproj/WebTextRenderer.m:
+        (-[WebTextRenderer convertCharacters:length:toGlyphs:skipControlCharacters:]):
+        (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:]):
+
 === Alexander-31 ===
 
 2002-11-07  Maciej Stachowiak  <mjs at apple.com>
diff --git a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
index cab628d..cde821a 100644
--- a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
+++ b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
@@ -19,6 +19,8 @@
 
 #import <QD/ATSUnicodePriv.h>
 
+#import <AppKit/NSFont_Private.h>
+
 #import <float.h>
 
 #define NON_BREAKING_SPACE 0x00A0
@@ -294,7 +296,20 @@ static BOOL bufferTextDrawing = NO;
     }
     
     status = ATSUConvertCharToGlyphs(styleGroup, characters, 0, numCharacters, 0, glyphs);
-    
+
+#ifdef DEBUG_GLYPHS
+    int foundGlyphs = 0;
+    ATSLayoutRecord *glyphRecord;
+    for (i = 0; i < numCharacters; i++) {
+        glyphRecord = (ATSLayoutRecord *)glyphs->firstRecord;
+        for (i = 0; i < numCharacters; i++) {
+            if (glyphRecord->glyphID != 0)
+                foundGlyphs++;
+            glyphRecord = (ATSLayoutRecord *)((char *)glyphRecord + glyphs->recordSize);
+        }
+    }
+    printf ("For %s found %d glyphs in range 0x%04x to 0x%04x\n", [[font displayName] cString], foundGlyphs, characters[0], characters[numCharacters-1]);
+#endif
     if (buffer != localBuffer) {
         free(buffer);
     }
@@ -734,6 +749,8 @@ static const char *joiningNames[] = {
             glyphID = [self extendCharacterToGlyphMapToInclude: c];
         }
 
+        // FIXME:  look at next character to determine if it is non-base, then
+        // determine the characters cluster from this base character.
 #ifdef DEBUG_DIACRITICAL
         if (IsNonBaseChar(c)){
             printf ("NonBaseCharacter 0x%04x, joining attribute %d(%s), combining class %d, direction %d, glyph %d, width %f\n", c, WebCoreUnicodeJoiningFunction(c), joiningNames(WebCoreUnicodeJoiningFunction(c)), WebCoreUnicodeCombiningClassFunction(c), WebCoreUnicodeDirectionFunction(c), glyphID, widthForGlyph(self, glyphToWidthMap, glyphID));
@@ -763,6 +780,13 @@ static const char *joiningNames[] = {
                 }
                 numGlyphs += cNumGlyphs;
             }
+#ifdef DEBUG_MISSING_GLYPH
+            else {
+                BOOL hasFont1 = [[NSFont coveredCharacterCache] characterIsMember:c];
+                BOOL hasFont2 = [[NSFont coveredCharacterCache] characterIsMember:originalCharacters[i]];
+                printf ("Unable to find glyph for base character 0x%04x (0x%04x) in font %s(%s) hasFont1 = %d, hasFont2 = %d\n", c, originalCharacters[i], [[font displayName] cString], [[substituteFont displayName] cString], (int)hasFont1, (int)hasFont2);
+            }
+#endif
         }
         
         // If we have a valid glyph OR if we couldn't find a substitute font

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list