Index: ui/app_list/page_switcher.cc |
diff --git a/ui/app_list/page_switcher.cc b/ui/app_list/page_switcher.cc |
index ba98671db832cff310d6e0c8c21812eb0d2c13a7..1517d39cdc1608db1b7bce122a999734223e12ab 100644 |
--- a/ui/app_list/page_switcher.cc |
+++ b/ui/app_list/page_switcher.cc |
@@ -189,8 +189,7 @@ void PageSwitcher::Layout() { |
rect.y(), |
buttons_size.width(), |
rect.height()); |
- rect.Intersect(buttons_bounds); |
- buttons_->SetBoundsRect(rect); |
+ buttons_->SetBoundsRect(gfx::IntersectRects(rect, buttons_bounds)); |
} |
void PageSwitcher::CalculateButtonWidthAndSpacing(int contents_width) { |