diff options
Diffstat (limited to 'chrome/views/container_win.cc')
-rw-r--r-- | chrome/views/container_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/container_win.cc b/chrome/views/container_win.cc index 4506b80..eecc228 100644 --- a/chrome/views/container_win.cc +++ b/chrome/views/container_win.cc @@ -56,7 +56,7 @@ void FillLayout::Layout(View* host) { return; View* frame_view = host->GetChildViewAt(0); - frame_view->SetBounds(CRect(CPoint(0, 0), bounds.Size())); + frame_view->SetBounds(0, 0, bounds.Width(), bounds.Height()); } gfx::Size FillLayout::GetPreferredSize(View* host) { @@ -800,7 +800,7 @@ void ContainerWin::ChangeSize(UINT size_param, const CSize& size) { // Resizing changes the size of the view hierarchy and thus forces a // complete relayout. - root_view_->SetBounds(CRect(CPoint(0,0), rect.Size())); + root_view_->SetBounds(0, 0, rect.Width(), rect.Height()); root_view_->Layout(); root_view_->SchedulePaint(); |