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

Issue 7326043: The text color for BookmarkButton sometimes doesn't get updated. (Closed)

Created:
9 years, 5 months ago by keishi1
Modified:
9 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

The text color for BookmarkButton sometimes doesn't get updated. This occurs on startup or when dragging a new bookmark onto the bookmark bar. This is because [BookmarkButtonCell setText:] was being called after [BookmarkButtonCell setTextColor:] I modified BookmarkButtonCell so it would save the text color and reapply it when setText gets called. BUG=88694 TEST=Manually. Choose a dark theme like glow and see if the BookmarkButtonCell text color turns white. Try relaunching and draging urls into the bookmark bar and see that it works properly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92158

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added comment. Moved applyTextColor to Private protocol. #

Total comments: 2

Patch Set 3 : Removed blank lines and added comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -15 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm View 1 2 4 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
keishi1
I couldn't figure out why [BookmarkButtonCell setTextColor:] was calling [NSButton setAttributedTitle:] instead of [NSButtonCell setAttributedTitle:].
9 years, 5 months ago (2011-07-11 14:41:25 UTC) #1
John Grabowski
http://codereview.chromium.org/7326043/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h (right): http://codereview.chromium.org/7326043/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h#newcode32 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h:32: scoped_nsobject<NSColor> textColor_; Looks like the convention in this class ...
9 years, 5 months ago (2011-07-11 21:48:12 UTC) #2
keishi1
On 2011/07/11 21:48:12, John Grabowski wrote: > http://codereview.chromium.org/7326043/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h > File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h (right): > > http://codereview.chromium.org/7326043/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h#newcode32 ...
9 years, 5 months ago (2011-07-12 01:20:23 UTC) #3
John Grabowski
LGTM Thanks for fixing this! http://codereview.chromium.org/7326043/diff/5001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): http://codereview.chromium.org/7326043/diff/5001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode48 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:48: [self configureBookmarkButtonCell]; Minor nit: ...
9 years, 5 months ago (2011-07-12 02:15:38 UTC) #4
commit-bot: I haz the power
9 years, 5 months ago (2011-07-12 13:02:22 UTC) #5
Change committed as 92158

Powered by Google App Engine
This is Rietveld 408576698