| Index: chrome/browser/cocoa/styled_text_field_cell.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/styled_text_field_cell.mm (revision 53182)
|
| +++ chrome/browser/cocoa/styled_text_field_cell.mm (working copy)
|
| @@ -85,6 +85,10 @@
|
| return 0.0;
|
| }
|
|
|
| +- (BOOL)shouldDrawBezel {
|
| + return NO;
|
| +}
|
| +
|
| // Returns the same value as textCursorFrameForFrame, but does not call it
|
| // directly to avoid potential infinite loops.
|
| - (NSRect)textFrameForFrame:(NSRect)cellFrame {
|
| @@ -166,6 +170,17 @@
|
| FrameRectWithInset(shadowFrame, 0.5, radius - 0.5, 1.0, shadowShade);
|
| }
|
|
|
| + // Draw optional bezel below bottom stroke.
|
| + if ([self shouldDrawBezel]) {
|
| + [[NSColor colorWithCalibratedWhite:0.96 alpha:1.0] set];
|
| + NSRect bezelRect = NSMakeRect(cellFrame.origin.x,
|
| + NSMaxY(cellFrame) - 0.5,
|
| + NSWidth(cellFrame),
|
| + 1.0);
|
| + bezelRect = NSInsetRect(bezelRect, radius - 0.5, 0.0);
|
| + NSFrameRect(bezelRect);
|
| + }
|
| +
|
| // Draw the focus ring if needed.
|
| if ([self showsFirstResponder]) {
|
| NSColor* color =
|
|
|