[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

darin darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:57:27 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 3df90bd18a5c796b5a04bb21dd92b33f72b0e55d
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 6 01:59:59 2002 +0000

            * WebCoreSupport.subproj/WebTextRenderer.m: Made a slightly simpler and faster
    	version of the new "lose precision" CEIL_TO_INT macro.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2572 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 7552db8..98502b8 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-05  Darin Adler  <darin at apple.com>
+
+        * WebCoreSupport.subproj/WebTextRenderer.m: Made a slightly simpler and faster
+	version of the new "lose precision" CEIL_TO_INT macro.
+
 2002-11-05  Richard Williamson  <rjw at apple.com>
 
         Fixed a couple of issues that Dave highlighted w/ his whitespace
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 7552db8..98502b8 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,8 @@
+2002-11-05  Darin Adler  <darin at apple.com>
+
+        * WebCoreSupport.subproj/WebTextRenderer.m: Made a slightly simpler and faster
+	version of the new "lose precision" CEIL_TO_INT macro.
+
 2002-11-05  Richard Williamson  <rjw at apple.com>
 
         Fixed a couple of issues that Dave highlighted w/ his whitespace
diff --git a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
index 256bbd1..1dc254a 100644
--- a/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
+++ b/WebKit/WebCoreSupport.subproj/WebTextRenderer.m
@@ -28,13 +28,13 @@
 
 #define ROUND_TO_INT(x) (unsigned int)((x)+.5)
 
-// Loose precision beyond 1000ths place.  This is a work-around to CG adding
-// small errors to some metrics.
-#define CEIL_TO_INT(x) ((int)((((int)(x*1000.0))/(1000.0)) + (1.0 - FLT_EPSILON)))
+// Lose precision beyond 1000ths place. This is to work around an apparent
+// bug in CoreGraphics where there seem to be small errors to some metrics.
+#define CEIL_TO_INT(x) ((int)(x + 0.999)) /* ((int)(x + 1.0 - FLT_EPSILON)) */
 
 #define LOCAL_BUFFER_SIZE 1024
 
-// Covers most of latin1.
+// Covers Latin1.
 #define INITIAL_BLOCK_SIZE 0x200
 
 // Get additional blocks of glyphs and widths in bigger chunks.

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list