| Index: ui/views/controls/menu/menu_separator_views.cc
|
| diff --git a/ui/views/controls/menu/menu_separator_views.cc b/ui/views/controls/menu/menu_separator_views.cc
|
| index b3e69d686e9545e9076878b58c23c5ba9ee84ff5..f1b4352968ac4ee1c926471c2e53dd26e3862f83 100644
|
| --- a/ui/views/controls/menu/menu_separator_views.cc
|
| +++ b/ui/views/controls/menu/menu_separator_views.cc
|
| @@ -37,19 +37,20 @@ void MenuSeparator::OnPaint(gfx::Canvas* canvas) {
|
| }
|
|
|
| gfx::Size MenuSeparator::GetPreferredSize() {
|
| - int height = MenuConfig::instance().separator_height;
|
| + const MenuConfig& menu_config = parent_menu_item_->GetMenuConfig();
|
| + int height = menu_config.separator_height;
|
| switch(type_) {
|
| case ui::SPACING_SEPARATOR:
|
| - height = MenuConfig::instance().separator_spacing_height;
|
| + height = menu_config.separator_spacing_height;
|
| break;
|
| case ui::LOWER_SEPARATOR:
|
| - height = MenuConfig::instance().separator_lower_height;
|
| + height = menu_config.separator_lower_height;
|
| break;
|
| case ui::UPPER_SEPARATOR:
|
| - height = MenuConfig::instance().separator_upper_height;
|
| + height = menu_config.separator_upper_height;
|
| break;
|
| default:
|
| - height = MenuConfig::instance().separator_height;
|
| + height = menu_config.separator_height;
|
| break;
|
| }
|
| return gfx::Size(10, // Just in case we're the only item in a menu.
|
|
|