From 17e41b7ee6df166993396f953aa556eccfd1bc36 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 14 Jan 2009 00:02:59 +0000 Subject: After playing around with a modified image from Glen, I concluded that a comment I wrote saying something should be changed was wrong. So fix the comment. Review URL: http://codereview.chromium.org/18028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7989 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/frame/opaque_non_client_view.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc index 251f2a4..5324b4b 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.cc +++ b/chrome/browser/views/frame/opaque_non_client_view.cc @@ -875,11 +875,9 @@ void OpaqueNonClientView::PaintClientEdge(ChromeCanvas* canvas) { // When we don't have a toolbar to draw a top edge for us, draw a top edge. gfx::Rect client_area_bounds = browser_view_->GetClientAreaBounds(); if (!browser_view_->IsToolbarVisible()) { - // This hack is necessary because the top center bitmap is shorter than the - // top left and right bitmaps. We need their top edges to line up, and we + // This is necessary because the top center bitmap is shorter than the top + // left and right bitmaps. We need their top edges to line up, and we // need the left and right edges to start below the corners' bottoms. - // TODO(pkasting): If we just make the bitmaps the same height, a la the - // bottom corners/center, we can remove this hack. int top_edge_y = client_area_top - app_top_center_.height(); client_area_top = top_edge_y + app_top_left_.height(); canvas->DrawBitmapInt(app_top_left_, -- cgit v1.1