summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthemeengine_impl_linux.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 19:03:13 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 19:03:13 +0000
commit1116c19900c5d7219b3d3ebecd38a569d5db03f3 (patch)
treea06caca3edcf6f3f7e2b209f5c77cb0722977884 /webkit/glue/webthemeengine_impl_linux.cc
parent4793f054bd615d8c139fa40935633534876ad3f1 (diff)
downloadchromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.zip
chromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.tar.gz
chromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.tar.bz2
Make the size of menulists on Linux the same size as on Windows.
We do this by adding an extra flag in MenuListExtraParams to suppress the border in the same case that we don't draw it on Windows. We also change ButtonExtraParams because paintMenuList calls into paintButton. BUG=41729 Review URL: http://codereview.chromium.org/6490014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webthemeengine_impl_linux.cc')
-rw-r--r--webkit/glue/webthemeengine_impl_linux.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webthemeengine_impl_linux.cc b/webkit/glue/webthemeengine_impl_linux.cc
index 6d9fc5b..6cdda79 100644
--- a/webkit/glue/webthemeengine_impl_linux.cc
+++ b/webkit/glue/webthemeengine_impl_linux.cc
@@ -105,6 +105,8 @@ static void GetNativeThemeExtraParams(
case WebKit::WebThemeEngine::PartButton:
native_theme_extra_params->button.is_default =
extra_params->button.isDefault;
+ native_theme_extra_params->button.has_border =
+ extra_params->button.hasBorder;
native_theme_extra_params->button.background_color =
extra_params->button.backgroundColor;
break;
@@ -117,6 +119,10 @@ static void GetNativeThemeExtraParams(
extra_params->textField.backgroundColor;
break;
case WebKit::WebThemeEngine::PartMenuList:
+ native_theme_extra_params->menu_list.has_border =
+ extra_params->menuList.hasBorder;
+ native_theme_extra_params->menu_list.has_border_radius =
+ extra_params->menuList.hasBorderRadius;
native_theme_extra_params->menu_list.arrow_x =
extra_params->menuList.arrowX;
native_theme_extra_params->menu_list.arrow_y =