diff options
Diffstat (limited to 'chrome/browser/find_in_page_controller.cc')
-rw-r--r-- | chrome/browser/find_in_page_controller.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/find_in_page_controller.cc b/chrome/browser/find_in_page_controller.cc index 0646ced..0f05267 100644 --- a/chrome/browser/find_in_page_controller.cc +++ b/chrome/browser/find_in_page_controller.cc @@ -480,12 +480,10 @@ void FindInPageController::GetDialogBounds(gfx::Rect* bounds) { // Find the dimensions of the toolbar and the BookmarkBar. gfx::Rect toolbar_bounds, bookmark_bar_bounds; if (toolbar) { - if (!g_browser_process->IsUsingNewFrames()) + if (!g_browser_process->IsUsingNewFrames()) { toolbar_bounds = toolbar->bounds(); - else { - CRect local_bounds; - toolbar->GetLocalBounds(&local_bounds, false); - toolbar_bounds = gfx::Rect(local_bounds); + } else { + toolbar_bounds = toolbar->GetLocalBounds(false); } // Need to convert toolbar bounds into Container coords because the toolbar // is the child of another view that isn't the top level view. This is |