Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
index 78b256d575dc5f847054a84c1502fec6c793a4cd..ccef5ada3f897e60e490ca010873e4977ba56bd9 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
@@ -699,6 +699,14 @@ void LocationBarViewMac::Layout() { |
[field_ setNeedsDisplay:YES]; |
} |
+void LocationBarViewMac::RedrawDecoration(LocationBarDecoration* decoration) { |
+ AutocompleteTextFieldCell* cell = [field_ cell]; |
+ NSRect frame = [cell frameForDecoration:decoration |
+ inFrame:[field_ bounds]]; |
+ if (!NSIsEmptyRect(frame)) |
+ [field_ setNeedsDisplayInRect:frame]; |
+} |
+ |
bool LocationBarViewMac::IsStarEnabled() { |
return [field_ isEditable] && |
browser_defaults::bookmarks_enabled && |