summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-14 22:23:45 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-14 22:23:45 +0000
commit3dcddd32a9bd7124c8ce79fc02879ca6e1c6d2ec (patch)
tree912f461dce47f5bdeb643393cbba40d972b3837a
parent4550d69d8252d89d00c8790be7dbb5e643bcf69b (diff)
downloadchromium_src-3dcddd32a9bd7124c8ce79fc02879ca6e1c6d2ec.zip
chromium_src-3dcddd32a9bd7124c8ce79fc02879ca6e1c6d2ec.tar.gz
chromium_src-3dcddd32a9bd7124c8ce79fc02879ca6e1c6d2ec.tar.bz2
Fix off-by-one error that crept into the BubbleBorder code.
BUG=46392 TEST=Star bubble arrow should point precisely at star center in both LTR and RTL modes. Review URL: http://codereview.chromium.org/2833004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49736 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/views/bubble_border.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/bubble_border.cc b/chrome/browser/views/bubble_border.cc
index cc59899..49c53b6 100644
--- a/chrome/browser/views/bubble_border.cc
+++ b/chrome/browser/views/bubble_border.cc
@@ -60,7 +60,7 @@ gfx::Rect BubbleBorder::GetBounds(const gfx::Rect& position_relative_to,
case TOP_RIGHT:
case BOTTOM_RIGHT:
- x += w / 2 + arrow_offset - border_size.width();
+ x += w / 2 + arrow_offset - border_size.width() + 1;
break;
case LEFT_TOP:
@@ -98,7 +98,7 @@ gfx::Rect BubbleBorder::GetBounds(const gfx::Rect& position_relative_to,
case LEFT_BOTTOM:
case RIGHT_BOTTOM:
- y += h / 2 + arrow_offset - border_size.height();
+ y += h / 2 + arrow_offset - border_size.height() + 1;
break;
case NONE: