| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // set. | 579 // set. |
| 580 if (o->style()->hasBorderRadius()) | 580 if (o->style()->hasBorderRadius()) |
| 581 return false; | 581 return false; |
| 582 | 582 |
| 583 const ThemeData& themeData = getThemeData(o); | 583 const ThemeData& themeData = getThemeData(o); |
| 584 | 584 |
| 585 WebCore::ThemeHelperWin helper(i.context, r); | 585 WebCore::ThemeHelperWin helper(i.context, r); |
| 586 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); | 586 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); |
| 587 | 587 |
| 588 HDC hdc = canvas->beginPlatformPaint(); | 588 HDC hdc = canvas->beginPlatformPaint(); |
| 589 COLORREF clr = gfx::SkColorToCOLORREF(o->style()->backgroundColor().rgb()); | 589 COLORREF clr = skia::SkColorToCOLORREF(o->style()->backgroundColor().rgb()); |
| 590 RECT renderRect = helper.rect(); | 590 RECT renderRect = helper.rect(); |
| 591 | 591 |
| 592 gfx::NativeTheme::instance()->PaintTextField(hdc, | 592 gfx::NativeTheme::instance()->PaintTextField(hdc, |
| 593 themeData.m_part, | 593 themeData.m_part, |
| 594 themeData.m_state, | 594 themeData.m_state, |
| 595 themeData.m_classicState, | 595 themeData.m_classicState, |
| 596 &renderRect, | 596 &renderRect, |
| 597 clr, | 597 clr, |
| 598 true, | 598 true, |
| 599 drawEdges); | 599 drawEdges); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 622 // static | 622 // static |
| 623 void RenderThemeWin::setFindInPageMode(bool enable) { | 623 void RenderThemeWin::setFindInPageMode(bool enable) { |
| 624 if (m_findInPageMode == enable) | 624 if (m_findInPageMode == enable) |
| 625 return; | 625 return; |
| 626 | 626 |
| 627 m_findInPageMode = enable; | 627 m_findInPageMode = enable; |
| 628 theme()->platformColorsDidChange(); | 628 theme()->platformColorsDidChange(); |
| 629 } | 629 } |
| 630 | 630 |
| 631 } // namespace WebCore | 631 } // namespace WebCore |
| OLD | NEW |