diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 21:50:42 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 21:50:42 +0000 |
commit | 7e935ca6da0894b626ac8d009da6b2bf625a3368 (patch) | |
tree | 15d0f0f14aa80e3dacd6984302b00cf8c129864b /webkit/glue/webthemeengine_impl_win.cc | |
parent | 929b4e9c3838ec15db1984cf56900801cd77a745 (diff) | |
download | chromium_src-7e935ca6da0894b626ac8d009da6b2bf625a3368.zip chromium_src-7e935ca6da0894b626ac8d009da6b2bf625a3368.tar.gz chromium_src-7e935ca6da0894b626ac8d009da6b2bf625a3368.tar.bz2 |
Convert to COLORREF properly. This matches the old code before my refactoring.
TBR=dglazkov
Review URL: http://codereview.chromium.org/42043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_win.cc')
-rw-r--r-- | webkit/glue/webthemeengine_impl_win.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc index f06921c..0ab5bf3 100644 --- a/webkit/glue/webthemeengine_impl_win.cc +++ b/webkit/glue/webthemeengine_impl_win.cc @@ -7,6 +7,7 @@ #include "WebRect.h" #include "base/gfx/native_theme.h" +#include "skia/ext/skia_utils_win.h" using WebKit::WebCanvas; using WebKit::WebColor; @@ -92,9 +93,10 @@ void WebThemeEngineImpl::paintTextField( HDC hdc = canvas->beginPlatformPaint(); RECT native_rect = WebRectToRECT(rect); + COLORREF c = skia::SkColorToCOLORREF(color); gfx::NativeTheme::instance()->PaintTextField( - hdc, part, state, classic_state, &native_rect, color, fill_content_area, + hdc, part, state, classic_state, &native_rect, c, fill_content_area, draw_edges); canvas->endPlatformPaint(); |