Index: ui/views/bubble/bubble_delegate.cc |
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc |
index e7307b3eef5239debadbe155c017484b21a265d5..564f6f5dbdec3d69374c3ba4977fe0eb47ad15e8 100644 |
--- a/ui/views/bubble/bubble_delegate.cc |
+++ b/ui/views/bubble/bubble_delegate.cc |
@@ -233,7 +233,7 @@ void BubbleDelegateView::OnWidgetMoved(Widget* widget) { |
} |
gfx::Rect BubbleDelegateView::GetAnchorRect() { |
- return anchor_view() ? anchor_view()->GetScreenBounds() : gfx::Rect(); |
+ return anchor_view() ? anchor_view()->GetBoundsInScreen() : gfx::Rect(); |
} |
void BubbleDelegateView::Show() { |
@@ -341,7 +341,7 @@ gfx::Rect BubbleDelegateView::GetBubbleBounds() { |
#if defined(OS_WIN) && !defined(USE_AURA) |
gfx::Rect BubbleDelegateView::GetBubbleClientBounds() const { |
gfx::Rect client_bounds(GetBubbleFrameView()->GetBoundsForClientView()); |
- client_bounds.Offset(border_widget_->GetWindowScreenBounds().origin()); |
+ client_bounds.Offset(border_widget_->GetWindowBoundsInScreen().origin()); |
return client_bounds; |
} |
#endif |