diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 14:41:48 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 14:41:48 +0000 |
commit | 74eb4ceef0aee9d59839816800016a150a8e446f (patch) | |
tree | db94ce77b2f3b4b4f51afde29b8568eebf98946b /chrome/browser/views | |
parent | 21492d0f5961a2d428156d160280608b04f4a01c (diff) | |
download | chromium_src-74eb4ceef0aee9d59839816800016a150a8e446f.zip chromium_src-74eb4ceef0aee9d59839816800016a150a8e446f.tar.gz chromium_src-74eb4ceef0aee9d59839816800016a150a8e446f.tar.bz2 |
Fixes regression in painting info bubble. This is the result of
changes to DrawRectInt. Previously a width/height of 0 was treated as a 1
pixel line, where as now nothing gets drawn. I've special cased this
again.
BUG=9931
TEST=see bug
Review URL: http://codereview.chromium.org/67149
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/info_bubble.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/views/info_bubble.cc b/chrome/browser/views/info_bubble.cc index 9e52842..b7ad3cb 100644 --- a/chrome/browser/views/info_bubble.cc +++ b/chrome/browser/views/info_bubble.cc @@ -360,23 +360,24 @@ void InfoBubble::ContentView::Paint(ChromeCanvas* canvas) { // Draw the border. // Top border. - canvas->DrawRectInt(kBorderColor1, + canvas->DrawLineInt(kBorderColor1, kInfoBubbleCornerWidth, bubble_y, - border_w, - 0); + kInfoBubbleCornerWidth + border_w, bubble_y); // Bottom border. - canvas->DrawRectInt(kBorderColor1, + canvas->DrawLineInt(kBorderColor1, kInfoBubbleCornerWidth, bubble_y + bubble_h - 1, - border_w, 0); + kInfoBubbleCornerWidth + border_w, + bubble_y + bubble_h - 1); // Left border. - canvas->DrawRectInt(kBorderColor1, + canvas->DrawLineInt(kBorderColor1, bubble_x, bubble_y + kInfoBubbleCornerHeight, - 0, border_h); + bubble_x, bubble_y + kInfoBubbleCornerHeight + border_h); // Right border. - canvas->DrawRectInt(kBorderColor1, + canvas->DrawLineInt(kBorderColor1, width() - 1, bubble_y + kInfoBubbleCornerHeight, - 0, border_h); + width() - 1, + bubble_y + kInfoBubbleCornerHeight + border_h); // Draw the corners. canvas->DrawBitmapInt(*kInfoBubbleCornerTopLeft, 0, bubble_y); |