| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| index 039eca8877e573123bdc5383c378acd9f5568446..422faee6961f818827a7a62aa5ff01b0753e8dd7 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| @@ -594,6 +594,20 @@ BOOL ThePasteboardIsTooDamnBig() {
|
| [[FindPasteboard sharedInstance] setFindText:[selection string]];
|
| }
|
|
|
| +- (BOOL)isOpaque {
|
| + // Even if you call -setDrawsBackground:NO, the background still gets drawn
|
| + // when editing. This is a problem because the left edge of the background
|
| + // overlaps the security decoration's hover rect. Return that the textview
|
| + // is transparent, and follow up below by disabling any background drawing.
|
| + // This will cause background drawing to fall through to the cell. See
|
| + // https://crbug.com/669870 .
|
| + return NO;
|
| +}
|
| +
|
| +- (void)drawViewBackgroundInRect:(NSRect)aRect {
|
| + // See the comment in -isOpaque.
|
| +}
|
| +
|
| - (void)drawRect:(NSRect)rect {
|
| AutocompleteTextFieldObserver* observer = [self observer];
|
| if (observer)
|
|
|