summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/toolbar_controller.mm
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 17:26:30 +0000
commitfc72076a7fa4c7260312fcb092294ab6e2a39821 (patch)
tree34ca8cca838e7f2aaf317a74034e60033ae8009f /chrome/browser/cocoa/toolbar_controller.mm
parente5ef3c8b7bebbce20319c73ccf153f3da596d650 (diff)
downloadchromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.zip
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.gz
chromium_src-fc72076a7fa4c7260312fcb092294ab6e2a39821.tar.bz2
[Mac] Tweaks to Omnibox metrics.
Pull in the popup corners by half a pixel to more closely match the rounding on the buttons. Pull up the gap between the popup and the field by one pixel to match Windows. http://crbug.com/20446 Review URL: http://codereview.chromium.org/178007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/toolbar_controller.mm')
-rw-r--r--chrome/browser/cocoa/toolbar_controller.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/toolbar_controller.mm b/chrome/browser/cocoa/toolbar_controller.mm
index 718eb30..f3f3659 100644
--- a/chrome/browser/cocoa/toolbar_controller.mm
+++ b/chrome/browser/cocoa/toolbar_controller.mm
@@ -412,7 +412,9 @@ class PrefObserverBridge : public NotificationObserver {
DCHECK(minX < NSMinX(locationFrame));
DCHECK(maxX > NSMaxX(locationFrame));
- NSRect r = NSMakeRect(minX, NSMinY(locationFrame), maxX - minX, 0);
+ // TODO(shess): The + 1.0 is because the field's visual boundary
+ // differs from its on-screen boundary.
+ NSRect r = NSMakeRect(minX, NSMinY(locationFrame) + 1.0, maxX - minX, 0);
return gfx::Rect(NSRectToCGRect([[self view] convertRect:r toView:nil]));
}
@end