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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 2401423004: Fix new tab button (broken when removing pre-MD code). (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 8bfec3d9682ebdf72b35f3549d52e5a35739b0df..2e1530cc7072e343fa670227243eedfdbef53903 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -1442,7 +1442,9 @@ void TabStrip::PaintChildren(const ui::PaintContext& context) {
active_tab->Paint(context);
// Paint the New Tab button.
- if (newtab_button_->state() != views::CustomButton::STATE_PRESSED) {
+ if (newtab_button_->state() == views::CustomButton::STATE_PRESSED) {
+ newtab_button_->Paint(context);
+ } else {
// Match the inactive tab opacity for non-pressed states. See comments in
// NewTabButton::PaintFill() for why we don't do this for the pressed state.
// This call doesn't need to set |lcd_text_requires_opaque_layer| to false
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698