Make WebKitGraphics able to handle grayscale colors
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Nov 2007 02:20:03 +0000 (02:20 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Nov 2007 02:20:03 +0000 (02:20 +0000)
commit8a3c8acafe799d5cd3e96adb08b25b77509ffd01
tree957e4da49059305d047a3e542d9377c75f134543
parentd6a6867c397fd70ee08b2ff1cf36f062967b0743
 Make WebKitGraphics able to handle grayscale colors

 WebCore:

         Add a Color(CGColorRef) constructor

         Reviewed by Darin.

         * platform/graphics/Color.h:
         * platform/graphics/cg/ColorCG.cpp:
         (WebCore::Color::Color): Added.

 WebKit/win:

         Take advantage of the new Color constructor that takes a CGColorRef

         This lets us handle grayscale colors (which only have 2 components).

         Reviewed by Darin.

         * WebKitGraphics.cpp:
         (DrawTextAtPoint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/Color.h
WebCore/platform/graphics/cg/ColorCG.cpp
WebKit/win/ChangeLog
WebKit/win/WebKitGraphics.cpp