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

Unified Diff: ui/base/cocoa/nsview_additions.mm

Issue 951063002: Mac: Fix bookmark button drawing regression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracking
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/nsview_additions.mm
diff --git a/ui/base/cocoa/nsview_additions.mm b/ui/base/cocoa/nsview_additions.mm
index 47e239de5e6a786c06695358e9c4028db65b165e..49f18b02b2f2997afc0df55753775130fda7f9be 100644
--- a/ui/base/cocoa/nsview_additions.mm
+++ b/ui/base/cocoa/nsview_additions.mm
@@ -91,7 +91,9 @@ static NSView* g_childBeingDrawnTo = nil;
DCHECK(!g_ancestorBeingDrawnFrom && !g_childBeingDrawnTo);
g_ancestorBeingDrawnFrom = ancestorView;
g_childBeingDrawnTo = self;
- [ancestorView drawRect:[self convertRect:dirtyRect toView:ancestorView]];
+ [ancestorView drawRect:NSIntersectionRect(
+ [ancestorView bounds],
+ [self convertRect:dirtyRect toView:ancestorView])];
g_childBeingDrawnTo = nil;
g_ancestorBeingDrawnFrom = nil;
}
« 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