diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 00:27:59 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 00:27:59 +0000 |
commit | 71509bc334bd4709111c81cc8bac11609507329b (patch) | |
tree | 375f6d5f8101877d64704af358e9e9c8266c40e2 /webkit | |
parent | 4d113254bf0c797148da120bfab92f86610f7aa1 (diff) | |
download | chromium_src-71509bc334bd4709111c81cc8bac11609507329b.zip chromium_src-71509bc334bd4709111c81cc8bac11609507329b.tar.gz chromium_src-71509bc334bd4709111c81cc8bac11609507329b.tar.bz2 |
Fix color conversion. When I removed the dependency on skia_utils in this port file, I did the color conversion wrong.
Review URL: http://codereview.chromium.org/13073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/port/rendering/RenderThemeWin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/port/rendering/RenderThemeWin.cpp b/webkit/port/rendering/RenderThemeWin.cpp index 18d841c..48a8947 100644 --- a/webkit/port/rendering/RenderThemeWin.cpp +++ b/webkit/port/rendering/RenderThemeWin.cpp @@ -571,7 +571,7 @@ bool RenderThemeWin::paintTextFieldInternal(RenderObject* o, gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); HDC hdc = canvas->beginPlatformPaint(); - COLORREF clr = o->style()->backgroundColor().rgb(); + COLORREF clr = o->style()->backgroundColor().rgb() & 0xFFFFFF; RECT renderRect = helper.rect(); gfx::NativeTheme::instance()->PaintTextField(hdc, |