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

Unified Diff: chrome/browser/ui/cocoa/background_gradient_view.mm

Issue 925583004: Mac: Fix incorrect tab dragging window drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ThreePartImage
Patch Set: Created 5 years, 10 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 | chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/background_gradient_view.mm
diff --git a/chrome/browser/ui/cocoa/background_gradient_view.mm b/chrome/browser/ui/cocoa/background_gradient_view.mm
index fdad7a826f4d3a4cfbdcf6a863d2908f3f3d1efc..df151d2aa6075db3fba07dd80ab4f6bdee3316c4 100644
--- a/chrome/browser/ui/cocoa/background_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/background_gradient_view.mm
@@ -115,8 +115,9 @@
[super viewDidMoveToWindow];
if ([self window]) {
// The new window for the view may have a different focus state than the
- // last window this view was part of. Force a re-draw to ensure that the
- // view draws the right state.
+ // last window this view was part of.
+ // This happens when the view is moved into a TabWindowOverlayWindow for
+ // tab dragging.
[self windowDidChangeActive];
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698