[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 07:52:00 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit f06248e356ea8bcddd6e908fa53a7f5461f9f4d0
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Aug 16 00:04:17 2003 +0000

    	Fixed 3378530.  Ensure that line is always drawn within bounds
    	of element.
    
            Reviewed by Chris.
    
            * WebCoreSupport.subproj/WebTextRenderer.m:
            (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4832 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index edee28e..35c1faf 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,15 @@
 2003-08-15  Richard Williamson  <rjw at apple.com>
 
+	Fixed 3378530.  Ensure that line is always drawn within bounds
+	of element.
+
+        Reviewed by Chris.
+
+        * WebCoreSupport.subproj/WebTextRenderer.m:
+        (-[WebTextRenderer drawLineForCharacters:yOffset:withWidth:withColor:]):
+
+2003-08-15  Richard Williamson  <rjw at apple.com>
+
 	Fixed 3379439.  Remove checks for CG symbols.  No longer needed.
 
         Reviewed by Darin.
diff --git a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
index 0d95a6b..0529587 100644
--- a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
+++ b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
@@ -1154,7 +1154,8 @@ static void _drawGlyphs(NSFont *font, NSColor *color, CGGlyph *glyphs, CGSize *a
     }
     CGContextSetLineWidth(cgContext, lineWidth);
     CGContextMoveToPoint(cgContext, point.x, point.y + [self lineSpacing] + 1.5 - [self descent] + yOffset);
-    CGContextAddLineToPoint(cgContext, point.x + width, point.y + [self lineSpacing] + 1.5 - [self descent] + yOffset);
+    // Subtract 1 to ensure that the line is always within bounds of element.
+    CGContextAddLineToPoint(cgContext, point.x + width - 1.0, point.y + [self lineSpacing] + 1.5 - [self descent] + yOffset);
     CGContextStrokePath(cgContext);
 
     [graphicsContext setShouldAntialias: flag];

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list