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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_view.mm

Issue 250703003: CoreAnimation: Fix download shelf pattern phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/cocoa/download/download_shelf_view.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_view.mm b/chrome/browser/ui/cocoa/download/download_shelf_view.mm
index 84be11ed75e340191eb5f8bdb9afdf83b9c1e807..4ba5e0fea41cddc4fd512d49686febdb1251eec8 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_view.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_view.mm
@@ -49,7 +49,8 @@
// background matches the toolbar background.
NSPoint phase = NSMakePoint(
0, NSHeight([self bounds]) + [TabStripController defaultTabHeight]);
- [[NSGraphicsContext currentContext] cr_setPatternPhase:phase forView:self];
+ [[NSGraphicsContext currentContext]
+ cr_setPatternPhase:phase forView:[self cr_viewBeingDrawnTo]];
[self drawBackgroundWithOpaque:YES];
// Draw top stroke
« 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