summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthemeengine_impl_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webthemeengine_impl_win.cc')
-rw-r--r--webkit/glue/webthemeengine_impl_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index d717b32..30464e0 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -30,6 +30,8 @@ static RECT WebRectToRECT(const WebRect& rect) {
static ui::NativeTheme::State WebButtonStateToGfx(
int part, int state, ui::NativeTheme::ButtonExtraParams* extra) {
ui::NativeTheme::State gfx_state = ui::NativeTheme::kNormal;
+ // Native buttons have a different focus style.
+ extra->is_focused = false;
if (part == BP_PUSHBUTTON) {
switch (state) {