diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-21 19:21:59 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-21 19:21:59 +0000 |
commit | 37bb756d61483d9d4c59ab680690be601ef8f623 (patch) | |
tree | ae8f541b9784edd9e2711a5fdbf7b168b0614439 | |
parent | 2d0769a5a93626ed2e482c9317794ff71d538337 (diff) | |
download | chromium_src-37bb756d61483d9d4c59ab680690be601ef8f623.zip chromium_src-37bb756d61483d9d4c59ab680690be601ef8f623.tar.gz chromium_src-37bb756d61483d9d4c59ab680690be601ef8f623.tar.bz2 |
Merge 264218 "CoreAnimation: Fix omnibox anti-aliasing on 10.6"
> CoreAnimation: Fix omnibox anti-aliasing on 10.6
>
> Transfer the drawsBackground and backgroundColor properties
> explicitly to the editor text view on 10.6. This is not necessary
> on subsequent versions.
>
> BUG=358416
>
> Review URL: https://codereview.chromium.org/239513004
TBR=ccameron@chromium.org
Review URL: https://codereview.chromium.org/245313003
git-svn-id: svn://svn.chromium.org/chrome/branches/1916/src@265043 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm index a1255bd..e4a1cf7 100644 --- a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm +++ b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm @@ -509,6 +509,14 @@ class NotificationBridge // aren't sent correctly. DCHECK(autocompleteTextFieldEditor_.get()); [autocompleteTextFieldEditor_.get() setFieldEditor:YES]; + if (base::mac::IsOSSnowLeopard()) { + // Manually transferring the drawsBackground and backgroundColor + // properties is necessary to ensure anti-aliased text on 10.6. + [autocompleteTextFieldEditor_ + setDrawsBackground:[locationBar_ drawsBackground]]; + [autocompleteTextFieldEditor_ + setBackgroundColor:[locationBar_ backgroundColor]]; + } return autocompleteTextFieldEditor_.get(); } return nil; |