summaryrefslogtreecommitdiffstats
path: root/views/events
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 21:48:00 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 21:48:00 +0000
commit3446c069d6670e68bf688aac606f4c2c818f22c3 (patch)
treeb6ba31d38a44b21cf1926572e47e41b793549b6a /views/events
parent8e1c5a3616e15f83e05766cb94093e8e9710f661 (diff)
downloadchromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.zip
chromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.tar.gz
chromium_src-3446c069d6670e68bf688aac606f4c2c818f22c3.tar.bz2
Rename View::GetCursor and simplify arguments.
Simplify RootView::UpdateCursor with MouseEvent ctor support. Restore pre-r83123 WigetWin::SetCursor(NULL) behavior. Cleanup (function ordering, OVERRIDEs, unnecessary "views::"). This originates from changes and comments of Patch Set 3 at: http://codereview.chromium.org/6893096/ BUG=72040 TEST=Mouse cursors. Review URL: http://codereview.chromium.org/6910032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/events')
-rw-r--r--views/events/event.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/events/event.cc b/views/events/event.cc
index 9f820cf..b729967 100644
--- a/views/events/event.cc
+++ b/views/events/event.cc
@@ -49,7 +49,7 @@ LocatedEvent::LocatedEvent(const LocatedEvent& model, View* source,
View* target)
: Event(model),
location_(model.location_) {
- if (target)
+ if (target && target != source)
View::ConvertPointToView(source, target, &location_);
}