| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 // set. | 564 // set. |
| 565 if (o->style()->hasBorderRadius()) | 565 if (o->style()->hasBorderRadius()) |
| 566 return false; | 566 return false; |
| 567 | 567 |
| 568 const ThemeData& themeData = getThemeData(o); | 568 const ThemeData& themeData = getThemeData(o); |
| 569 | 569 |
| 570 WebCore::ThemeHelperWin helper(i.context, r); | 570 WebCore::ThemeHelperWin helper(i.context, r); |
| 571 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); | 571 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); |
| 572 | 572 |
| 573 HDC hdc = canvas->beginPlatformPaint(); | 573 HDC hdc = canvas->beginPlatformPaint(); |
| 574 COLORREF clr = o->style()->backgroundColor().rgb(); | 574 COLORREF clr = o->style()->backgroundColor().rgb() & 0xFFFFFF; |
| 575 RECT renderRect = helper.rect(); | 575 RECT renderRect = helper.rect(); |
| 576 | 576 |
| 577 gfx::NativeTheme::instance()->PaintTextField(hdc, | 577 gfx::NativeTheme::instance()->PaintTextField(hdc, |
| 578 themeData.m_part, | 578 themeData.m_part, |
| 579 themeData.m_state, | 579 themeData.m_state, |
| 580 themeData.m_classicState, | 580 themeData.m_classicState, |
| 581 &renderRect, | 581 &renderRect, |
| 582 clr, | 582 clr, |
| 583 true, | 583 true, |
| 584 drawEdges); | 584 drawEdges); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 607 // static | 607 // static |
| 608 void RenderThemeWin::setFindInPageMode(bool enable) { | 608 void RenderThemeWin::setFindInPageMode(bool enable) { |
| 609 if (m_findInPageMode == enable) | 609 if (m_findInPageMode == enable) |
| 610 return; | 610 return; |
| 611 | 611 |
| 612 m_findInPageMode = enable; | 612 m_findInPageMode = enable; |
| 613 theme()->platformColorsDidChange(); | 613 theme()->platformColorsDidChange(); |
| 614 } | 614 } |
| 615 | 615 |
| 616 } // namespace WebCore | 616 } // namespace WebCore |
| OLD | NEW |