diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:07:23 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:07:23 +0000 |
commit | a0f3e087b823699a0c823276b2228e3f5738d5e4 (patch) | |
tree | 17d2c913f6ea13414b1650e9550370f6056369ff /chrome | |
parent | d8e6c7fb74962a04da8ec51cb46943d64b949642 (diff) | |
download | chromium_src-a0f3e087b823699a0c823276b2228e3f5738d5e4.zip chromium_src-a0f3e087b823699a0c823276b2228e3f5738d5e4.tar.gz chromium_src-a0f3e087b823699a0c823276b2228e3f5738d5e4.tar.bz2 |
[Mac] Center image in keyword-search and ev bubble in omnibox.
Omnibox recently got taller on Mac, which screwed up the centering.
Visually inspect and re-center.
BUG=49101
TEST=https://www.thawte.com/, lock should be centered vertically.
Review URL: http://codereview.chromium.org/2856037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/location_bar/bubble_decoration.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/cocoa/location_bar/bubble_decoration.mm index 08bbbc7..5a85a9c 100644 --- a/chrome/browser/cocoa/location_bar/bubble_decoration.mm +++ b/chrome/browser/cocoa/location_bar/bubble_decoration.mm @@ -12,9 +12,6 @@ namespace { // Padding between the icon/label and bubble edges. const CGFloat kBubblePadding = 7.0; -// How far to inset image from boundary rect. -const CGFloat kImageInset = 3.0; - // How far to inset the keywork token from sides. const NSInteger kKeywordYInset = 4; @@ -74,7 +71,7 @@ void BubbleDecoration::DrawInFrame(NSRect frame, NSView* control_view) { [path setLineWidth:1.0]; [path stroke]; - NSRect imageRect = NSOffsetRect(decorationFrame, kImageInset, kImageInset); + NSRect imageRect = decorationFrame; if (image_) { imageRect.size = [image_ size]; [image_ drawInRect:imageRect |