| Index: chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm b/chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm
|
| index 2e5ed55f8f35b32c4a0a960e08fd97240a0fd637..ae8ddf7953781a3258b2945c637a1a6479ae7c54 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm
|
| @@ -17,9 +17,6 @@
|
|
|
| namespace {
|
|
|
| -// How far to inset the hint text area from sides.
|
| -const CGFloat kHintTextYInset = 4.0;
|
| -
|
| // How far to inset the hint image from sides. Lines baseline of text
|
| // in image with baseline of prefix and suffix.
|
| const CGFloat kHintImageYInset = 4.0;
|
| @@ -120,7 +117,7 @@ void KeywordHintDecoration::DrawInFrame(NSRect frame, NSView* control_view) {
|
| const bool draw_full = NSWidth(frame) > image_width;
|
|
|
| if (draw_full) {
|
| - NSRect prefix_rect = NSInsetRect(frame, 0.0, kHintTextYInset);
|
| + NSRect prefix_rect = NSInsetRect(frame, 0.0, kTextYInset);
|
| const CGFloat prefix_width =
|
| [hint_prefix_ sizeWithAttributes:attributes_].width;
|
| DCHECK_GE(NSWidth(prefix_rect), prefix_width);
|
| @@ -144,7 +141,7 @@ void KeywordHintDecoration::DrawInFrame(NSRect frame, NSView* control_view) {
|
| frame.size.width -= NSWidth(image_rect);
|
|
|
| if (draw_full) {
|
| - NSRect suffix_rect = NSInsetRect(frame, 0.0, kHintTextYInset);
|
| + NSRect suffix_rect = NSInsetRect(frame, 0.0, kTextYInset);
|
| const CGFloat suffix_width =
|
| [hint_suffix_ sizeWithAttributes:attributes_].width;
|
|
|
|
|