From 212e688d11b29489d00319a52eea8e28ba26c599 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 23 Nov 2011 02:09:48 +0000 Subject: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8476019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111288 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/views/window/custom_frame_view.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui/views/window') diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc index fae0d2f..6c56db1 100644 --- a/ui/views/window/custom_frame_view.cc +++ b/ui/views/window/custom_frame_view.cc @@ -484,9 +484,10 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) { client_area_top, left->width(), client_area_height); // Draw the toolbar color to fill in the edges. - canvas->DrawRectInt(ResourceBundle::toolbar_color, - client_area_bounds.x() - 1, client_area_top - 1, - client_area_bounds.width() + 1, client_area_bottom - client_area_top + 1); + canvas->DrawRect(gfx::Rect(client_area_bounds.x() - 1, client_area_top - 1, + client_area_bounds.width() + 1, + client_area_bottom - client_area_top + 1), + ui::ResourceBundle::toolbar_color); } void CustomFrameView::LayoutWindowControls() { -- cgit v1.1