summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthemeengine_impl_win.cc
diff options
context:
space:
mode:
authorscottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 17:25:09 +0000
committerscottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 17:25:09 +0000
commit237c77446f539d8b8328dbf9416fc034f52c122b (patch)
tree6a78199ad6b22745f16d4ecde461e14fe4852138 /webkit/glue/webthemeengine_impl_win.cc
parentb2b50c7c6aa33b38880dd05983173e69edad197b (diff)
downloadchromium_src-237c77446f539d8b8328dbf9416fc034f52c122b.zip
chromium_src-237c77446f539d8b8328dbf9416fc034f52c122b.tar.gz
chromium_src-237c77446f539d8b8328dbf9416fc034f52c122b.tar.bz2
Initialize button theme elements
Without initialization Skia asserts with unexpected alpha values when running on Win Aura. TEST=browser_tests, PrintWebViewHelperTest.AllowUserOriginatedPrinting Review URL: https://codereview.chromium.org/11418119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_win.cc')
-rw-r--r--webkit/glue/webthemeengine_impl_win.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index 4290932..159d048 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -33,6 +33,9 @@ static ui::NativeTheme::State WebButtonStateToGfx(
ui::NativeTheme::State gfx_state = ui::NativeTheme::kNormal;
// Native buttons have a different focus style.
extra->is_focused = false;
+ extra->has_border = false;
+ extra->background_color = ui::NativeTheme::instance()->GetSystemColor(
+ ui::NativeTheme::kColorId_TextButtonBackgroundColor);
if (part == BP_PUSHBUTTON) {
switch (state) {