summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/aero_glass_non_client_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame/aero_glass_non_client_view.cc')
-rw-r--r--chrome/browser/views/frame/aero_glass_non_client_view.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc
index 5155634..65b9f9d 100644
--- a/chrome/browser/views/frame/aero_glass_non_client_view.cc
+++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc
@@ -250,11 +250,6 @@ gfx::Size AeroGlassNonClientView::GetPreferredSize() {
return prefsize;
}
-void AeroGlassNonClientView::DidChangeBounds(const CRect& previous,
- const CRect& current) {
- Layout();
-}
-
void AeroGlassNonClientView::ViewHierarchyChanged(bool is_add,
ChromeViews::View* parent,
ChromeViews::View* child) {
@@ -413,9 +408,8 @@ void AeroGlassNonClientView::LayoutDistributorLogo() {
}
void AeroGlassNonClientView::LayoutClientView() {
- gfx::Rect client_bounds(
- CalculateClientAreaBounds(width(), height()));
- frame_->client_view()->SetBounds(client_bounds.ToRECT());
+ gfx::Rect client_bounds = CalculateClientAreaBounds(width(), height());
+ frame_->client_view()->SetBounds(client_bounds);
}
// static