diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 04:10:45 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 04:10:45 +0000 |
commit | 99dbb4b5b1ec5edeb69551febe99eed097c3f995 (patch) | |
tree | ce471ec421fdcb7adc0df5fca5e69a0268bc74f9 /chrome/browser/views/frame/opaque_browser_frame_view.cc | |
parent | 65a8a612270f60c09d92c9e02b51b05330c9f3d0 (diff) | |
download | chromium_src-99dbb4b5b1ec5edeb69551febe99eed097c3f995.zip chromium_src-99dbb4b5b1ec5edeb69551febe99eed097c3f995.tar.gz chromium_src-99dbb4b5b1ec5edeb69551febe99eed097c3f995.tar.bz2 |
Some unnecessary painting and initing was being done.
TBR=beng
Review URL: http://codereview.chromium.org/113182
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/opaque_browser_frame_view.cc')
-rw-r--r-- | chrome/browser/views/frame/opaque_browser_frame_view.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/views/frame/opaque_browser_frame_view.cc b/chrome/browser/views/frame/opaque_browser_frame_view.cc index 317e307..5a2fb24 100644 --- a/chrome/browser/views/frame/opaque_browser_frame_view.cc +++ b/chrome/browser/views/frame/opaque_browser_frame_view.cc @@ -668,9 +668,6 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(ChromeCanvas* canvas) { SkBitmap* toolbar_left = tp->GetBitmapNamed(IDR_CONTENT_TOP_LEFT_CORNER); - canvas->DrawBitmapInt(*toolbar_left, - toolbar_bounds.x() - toolbar_left->width(), - toolbar_bounds.y()); // Gross hack: We split the toolbar images into two pieces, since sometimes // (popup mode) the toolbar isn't tall enough to show the whole image. The @@ -758,7 +755,6 @@ void OpaqueBrowserFrameView::PaintRestoredClientEdge(ChromeCanvas* canvas) { top_right->width(), height, false); } - int client_area_bottom = std::max(client_area_top, height() - NonClientBorderThickness()); int client_area_height = client_area_bottom - client_area_top; |