[Webkit-unassigned] [Bug 21322] DumpRenderTree pixel test improvements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 2 20:18:44 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21322





------- Comment #4 from mitz at webkit.org  2008-10-02 20:18 PDT -------
This patch includes several significant changes and I will not have time to
review it tonight, but I was wondering about this:

+// We also need to ensure font smoothing (i.e. LCD Antialiasing) has been
disabled, but
+// NSGraphicsContext seems to be overriding CGContextSetShouldSmoothFonts()...
+// 
+// Since there's no public API to force disable font smoothing, we work around
it by using a
+// 'bitmapInfo' incompatible with font smoothing i.e. not matching pixels on
screen as
+// (kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host).

In setDefaultsToConsistentValuesForTesting() in DumpRenderTree.mm, we call

    [defaults setInteger:MediumFontSmoothing forKey:@"AppleFontSmoothing"];

I believe that setting it to 0 instead of MediumFontSmoothing (2) is a far
better way to accomplish this, especially since since there is code in WebCore
that looks directly at that user default.

For Windows, there should be a similar way to do it, which is how Safari's
appearance preferences work.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list