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

Issue 2562863002: [Mac] Prevent omnibox text bg from drawing over decoration, focus ring. (Closed)

Created:
4 years ago by shrike
Modified:
4 years ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Prevent omnibox text bg from drawing over decoration, focus ring. The AutocompleteTextFieldEditor draws a background, apparently even when you call setDrawsBackground:NO (at least during editing). Because of the 1pt spacing set by UX between the security decoration border and the start of omnibox text, this background started drawing into the decoration's hover rect. On the right edge it drew into the edge of the focus ring. This cl prevents the AutocompleteTetFieldEditor from drawing a background, relying instead on the background drawn by the textfield's cell. It also changes decorations to be drawn after the cell's interior, to prevent the background overlap when not editing. R=avi@chromium.org BUG=669870, 672518 Committed: https://crrev.com/55c13aa9610ea5e5dc91f3d3b21c5cc42d05ff5c Cr-Commit-Position: refs/heads/master@{#437596}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
shrike
PTAL
4 years ago (2016-12-09 00:04:59 UTC) #1
Avi (use Gerrit)
LGTM
4 years ago (2016-12-09 15:52:21 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562863002/1
4 years ago (2016-12-09 18:13:01 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 18:47:37 UTC) #7
commit-bot: I haz the power
4 years ago (2016-12-12 14:36:33 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/55c13aa9610ea5e5dc91f3d3b21c5cc42d05ff5c
Cr-Commit-Position: refs/heads/master@{#437596}

Powered by Google App Engine
This is Rietveld 408576698