summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/find_bar_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/find_bar_win.cc')
-rw-r--r--chrome/browser/views/find_bar_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/find_bar_win.cc b/chrome/browser/views/find_bar_win.cc
index d85c2ef..69d2417 100644
--- a/chrome/browser/views/find_bar_win.cc
+++ b/chrome/browser/views/find_bar_win.cc
@@ -367,12 +367,12 @@ bool FindBarWin::GetFindBarWindowInfo(gfx::Point* position,
if (!find_bar_controller_ ||
!::IsWindow(GetNativeView()) ||
!::GetWindowRect(GetNativeView(), &window_rect)) {
- *position = gfx::Point(0, 0);
+ *position = gfx::Point();
*fully_visible = false;
return false;
}
- *position = gfx::Point(window_rect.TopLeft().x, window_rect.TopLeft().y);
+ *position = window_rect.TopLeft();
*fully_visible = IsVisible() && !IsAnimating();
return true;
}