Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: chrome/browser/ui/cocoa/location_bar/button_decoration.mm

Issue 11135002: Updated code to support new assets (which are now exactly the size of the Omnibox). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/button_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
index 2c0a313a2b3fbe2a636057b4597ce856e0c91d4c..963c449edcd464402d4d0c350822b74c632e56d1 100644
--- a/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/button_decoration.mm
@@ -5,7 +5,6 @@
#include <cmath>
#import "chrome/browser/ui/cocoa/location_bar/button_decoration.h"
-#import "chrome/browser/ui/cocoa/nsview_additions.h"
#include "base/logging.h"
@@ -47,11 +46,7 @@ CGFloat ButtonDecoration::GetWidthForSpace(CGFloat width) {
}
void ButtonDecoration::DrawInFrame(NSRect frame, NSView* control_view) {
- // Get tne inner frame that excludes the border and the shadow, and draw the
- // image in there. Assumes that the button's images fit exactly inside that
- // space.
- NSRect innerFrame = NSInsetRect(frame, 0, 2 * [control_view cr_lineWidth]);
- [GetImage() drawInRect:innerFrame
+ [GetImage() drawInRect:frame
fromRect:NSZeroRect // Entire image
operation:NSCompositeSourceOver
fraction:1.0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698