summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 18:18:39 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 18:18:39 +0000
commitc674856e4bb90605f7581696d2ca8eaae3a6d202 (patch)
tree0dd8d3d5337975fe48790b9d9d3db41a380cf222 /views
parent00d64211401b604b7af52168efe01af024324f10 (diff)
downloadchromium_src-c674856e4bb90605f7581696d2ca8eaae3a6d202.zip
chromium_src-c674856e4bb90605f7581696d2ca8eaae3a6d202.tar.gz
chromium_src-c674856e4bb90605f7581696d2ca8eaae3a6d202.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/window/custom_frame_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc
index c526bf8..85d6ac9 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -397,7 +397,7 @@ void CustomFrameView::PaintMaximizedFrameBorder(gfx::Canvas* canvas) {
// graphic, with the actual client edge clipped off the bottom.
SkBitmap* titlebar_bottom = rb.GetBitmapNamed(IDR_APP_TOP_CENTER);
int edge_height = titlebar_bottom->height() -
- ShouldShowClientEdge() ? kClientEdgeThickness : 0;
+ (ShouldShowClientEdge() ? kClientEdgeThickness : 0);
canvas->TileImageInt(*titlebar_bottom, 0,
frame_->client_view()->y() - edge_height, width(), edge_height);
}