diff options
author | tengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 22:48:14 +0000 |
---|---|---|
committer | tengs@chromium.org <tengs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 22:48:14 +0000 |
commit | 1d5d8db8a1c37803286cc90a16554e673aa3d032 (patch) | |
tree | 6c0bbf3a61338e10c4e07f1b37f4786829d332f8 /ui/events/event.h | |
parent | ad0d40c1a2258c7574bb1171ffd8ad9a232fd188 (diff) | |
download | chromium_src-1d5d8db8a1c37803286cc90a16554e673aa3d032.zip chromium_src-1d5d8db8a1c37803286cc90a16554e673aa3d032.tar.gz chromium_src-1d5d8db8a1c37803286cc90a16554e673aa3d032.tar.bz2 |
Fix sticky keys crash when handling synthetic events without a native event.
BUG=358270
TEST=modified tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262465
Review URL: https://codereview.chromium.org/227113009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/events/event.h')
-rw-r--r-- | ui/events/event.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/events/event.h b/ui/events/event.h index 51d73f8..17cad8b 100644 --- a/ui/events/event.h +++ b/ui/events/event.h @@ -416,11 +416,9 @@ class EVENTS_EXPORT MouseWheelEvent : public MouseEvent { template <class T> MouseWheelEvent(const MouseWheelEvent& model, T* source, - T* target, - EventType type, - int flags) - : MouseEvent(model, source, target, type, flags), - offset_(model.x_offset(), model.y_offset()){ + T* target) + : MouseEvent(model, source, target, model.type(), model.flags()), + offset_(model.x_offset(), model.y_offset()) { } // The amount to scroll. This is in multiples of kWheelDelta. |