Commit c674856e authored by thakis@chromium.org's avatar thakis@chromium.org

views: Fix an operator precedence error found by PVS Studio.

BUG=83891
TEST=none


Review URL: http://codereview.chromium.org/6987021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86652 0039d316-1c4b-4281-b951-d872f2087c98
parent 00d64211
...@@ -397,7 +397,7 @@ void CustomFrameView::PaintMaximizedFrameBorder(gfx::Canvas* canvas) { ...@@ -397,7 +397,7 @@ void CustomFrameView::PaintMaximizedFrameBorder(gfx::Canvas* canvas) {
// graphic, with the actual client edge clipped off the bottom. // graphic, with the actual client edge clipped off the bottom.
SkBitmap* titlebar_bottom = rb.GetBitmapNamed(IDR_APP_TOP_CENTER); SkBitmap* titlebar_bottom = rb.GetBitmapNamed(IDR_APP_TOP_CENTER);
int edge_height = titlebar_bottom->height() - int edge_height = titlebar_bottom->height() -
ShouldShowClientEdge() ? kClientEdgeThickness : 0; (ShouldShowClientEdge() ? kClientEdgeThickness : 0);
canvas->TileImageInt(*titlebar_bottom, 0, canvas->TileImageInt(*titlebar_bottom, 0,
frame_->client_view()->y() - edge_height, width(), edge_height); frame_->client_view()->y() - edge_height, width(), edge_height);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment