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

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

Issue 15797002: [OSX] Use view coordinate system for tracking rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/base_view.mm
diff --git a/ui/base/cocoa/base_view.mm b/ui/base/cocoa/base_view.mm
index f686f9df344aa34a3c11101c368a2de9fff0ba5a..567fb29b0acc24c467374206f30d3b6e17211c55 100644
--- a/ui/base/cocoa/base_view.mm
+++ b/ui/base/cocoa/base_view.mm
@@ -140,7 +140,7 @@ const int kTrackingOptions = NSTrackingMouseMoved |
// Tear down old tracking area and create a new one as workaround.
if (trackingArea_.get())
[self removeTrackingArea:trackingArea_.get()];
- trackingArea_.reset([[CrTrackingArea alloc] initWithRect:[self frame]
+ trackingArea_.reset([[CrTrackingArea alloc] initWithRect:[self bounds]
options:kTrackingOptions
owner:self
userInfo: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