Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4738)

Unified Diff: chrome/browser/views/find_bar_win.cc

Issue 13235: Cleanup adding BoundsInWidget to View to convert callers... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/views/hwnd_view.cc » ('j') | chrome/views/view.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/find_bar_win.cc
===================================================================
--- chrome/browser/views/find_bar_win.cc (revision 6273)
+++ chrome/browser/views/find_bar_win.cc (working copy)
@@ -487,9 +487,8 @@
// is the child of another view that isn't the top level view. This is
// required to ensure correct positioning relative to the top,left of the
// window.
- gfx::Point topleft;
- views::View::ConvertPointToWidget(toolbar, &topleft);
- toolbar_bounds.Offset(topleft.x(), topleft.y());
+ gfx::Rect widget_bounds = toolbar->BoundsInWidget();
+ toolbar_bounds.Offset(widget_bounds.x(), widget_bounds.y());
}
// If the bookmarks bar is available, we need to update our
« no previous file with comments | « no previous file | chrome/views/hwnd_view.cc » ('j') | chrome/views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698