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

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

Issue 240093006: CoreAnimation: Fix text anti-aliasing in download shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_omnibox_aa
Patch Set: Fix typo 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 | « chrome/browser/ui/cocoa/view_id_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/view_id_util.mm
diff --git a/chrome/browser/ui/cocoa/view_id_util.mm b/chrome/browser/ui/cocoa/view_id_util.mm
index 691c7f30cea63c7de19b07ba733adb0fab03d394..6dd19ada9446ddcd3a0825dc8d061254d930b300 100644
--- a/chrome/browser/ui/cocoa/view_id_util.mm
+++ b/chrome/browser/ui/cocoa/view_id_util.mm
@@ -86,4 +86,11 @@ NSView* GetView(NSWindow* window, ViewID viewID) {
return iter != map->end() ? iter->second : VIEW_ID_NONE;
}
+- (NSView*)ancestorWithViewID:(ViewID)viewID {
+ NSView* ancestor = self;
+ while (ancestor && [ancestor viewID] != viewID)
+ ancestor = [ancestor superview];
+ return ancestor;
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/view_id_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698