Fix drawSelectionRect to actually draw the selection rect.
* DumpRenderTree/cg/PixelDumpSupportCG.cpp:
(drawSelectionRect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28249
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-30 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Adam Roben.
+
+ Fix drawSelectionRect to actually draw the selection rect.
+
+ * DumpRenderTree/cg/PixelDumpSupportCG.cpp:
+ (drawSelectionRect):
+
2007-11-30 Darin Adler <darin@apple.com>
* Scripts/do-webcore-rename: WildFox already did the TextStyle -> FontStyle one.
void drawSelectionRect(CGContextRef context, const CGRect& rect)
{
- const CGFloat redColor[4] = { 1.0, 0.0, 0.0, 0.0 };
-
CGContextSaveGState(context);
- CGContextSetStrokeColor(context, redColor);
+ CGContextSetRGBStrokeColor(context, 1.0, 0.0, 0.0, 1.0);
CGContextStrokeRect(context, rect);
CGContextRestoreGState(context);
}