Index: ui/views/bubble/bubble_frame_view.cc |
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc |
index 03237380abb0006beccac0b96929e24746e081a2..d3f608a286b01d9631b5c0d1161934f4e04e2a48 100644 |
--- a/ui/views/bubble/bubble_frame_view.cc |
+++ b/ui/views/bubble/bubble_frame_view.cc |
@@ -49,11 +49,10 @@ BubbleFrameView::BubbleFrameView(const gfx::Insets& margins, |
BubbleFrameView::~BubbleFrameView() {} |
gfx::Rect BubbleFrameView::GetBoundsForClientView() const { |
- gfx::Insets margin = bubble_border()->GetInsets(); |
- margin += content_margins(); |
- return gfx::Rect(margin.left(), margin.top(), |
- std::max(width() - margin.width(), 0), |
- std::max(height() - margin.height(), 0)); |
+ gfx::Rect client_bounds = GetLocalBounds(); |
+ client_bounds.Inset(border()->GetInsets()); |
+ client_bounds.Inset(content_margins()); |
+ return client_bounds; |
} |
gfx::Rect BubbleFrameView::GetWindowBoundsForClientBounds( |