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

Unified Diff: chrome/browser/views/old_frames/simple_vista_frame.cc

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months 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
Index: chrome/browser/views/old_frames/simple_vista_frame.cc
===================================================================
--- chrome/browser/views/old_frames/simple_vista_frame.cc (revision 3391)
+++ chrome/browser/views/old_frames/simple_vista_frame.cc (working copy)
@@ -203,12 +203,11 @@
if (browser_->ShouldDisplayURLField()) {
TabContentsContainerView* container = GetTabContentsContainer();
- CSize s;
- location_bar_->GetPreferredSize(&s);
+ gfx::Size s = location_bar_->GetPreferredSize();
location_bar_->SetBounds(container->x() - kLocationBarOutdent,
container->y() - kLocationBarOutdent,
container->width() + kLocationBarOutdent * 2,
- s.cy);
+ s.height());
container->SetBounds(container->x(),
location_bar_->y() + location_bar_->height() -
kLocationBarSpacing, container->width(),

Powered by Google App Engine
This is Rietveld 408576698