It should be possible for a web developer to override the non-smoothed fonts in compositing layers via CSS, which they might want to do if they know the layer background is opaque.
<rdar://problem/8747953>
Created attachment 76479 [details] Patch
Attachment 76479 [details] did not build on chromium: Build output: http://queues.webkit.org/results/6960105
Created attachment 76480 [details] Patch
Attachment 76480 [details] did not build on mac: Build output: http://queues.webkit.org/results/7048009
Attachment 76480 [details] did not build on mac: Build output: http://queues.webkit.org/results/6901116
Attachment 76480 [details] did not build on chromium: Build output: http://queues.webkit.org/results/7023110
Created attachment 76551 [details] Patch
Attachment 76551 [details] did not build on chromium: Build output: http://queues.webkit.org/results/6944123
Attachment 76551 [details] did not build on mac: Build output: http://queues.webkit.org/results/6921149
Created attachment 76579 [details] Patch
Dan has a valuable point here. This patch (and existing webkit, actually), allows CSS to turn on font smoothing when the user may have disabled it system-wide via the System Preferences. However, that issue is not new with this patch. We should address is separately.
Comment on attachment 76579 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=76579&action=review Why isn’t the Font code using the new GraphicsContext methods? I choose to r- what I don’t understand :) > WebCore/ChangeLog:39 > +2010-12-13 Simon Fraser <simon.fraser@apple.com> > + > + GraphicsContextPrivate.h was removed. Nuke it from the project. > + > + * WebCore.xcodeproj/project.pbxproj: > + Old change log entry
(In reply to comment #12) > Dan has a valuable point here. This patch (and existing webkit, actually), allows CSS to turn on font smoothing when the user may have disabled it system-wide via the System Preferences. Testing shows that this is not actually true, before or after this patch. The System Preference setting trumps all.
http://trac.webkit.org/changeset/74151