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

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

Issue 2339143003: Revert of BackgroundGradientView: -drawBackground: → -drawRect: (Closed)
Patch Set: Created 4 years, 3 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
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 6458533dbc51ed8db54c04fa93f229d46d37d96d..bfd64b39ff6751214a58086b05c3aa2565d03c37 100644
--- a/chrome/browser/ui/cocoa/background_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/background_gradient_view.mm
@@ -51,7 +51,7 @@
themeImagePositionForAlignment:THEME_IMAGE_ALIGN_WITH_TAB_STRIP];
}
-- (void)drawRect:(NSRect)dirtyRect {
+- (void)drawBackground:(NSRect)dirtyRect {
[[NSGraphicsContext currentContext]
cr_setPatternPhase:[self patternPhase]
forView:[self cr_viewBeingDrawnTo]];
« no previous file with comments | « chrome/browser/ui/cocoa/background_gradient_view.h ('k') | chrome/browser/ui/cocoa/background_gradient_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698