summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webinputevent_win.cc
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 06:59:00 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-11 06:59:00 +0000
commit4f17e3ba905f08c359ef9c50cc08ef36735af865 (patch)
tree31c52447ccc0c206f6cae116d61d969a55ca22aa /webkit/glue/webinputevent_win.cc
parentf00e3445a8f44e5d3271ac63e10cc34bc02dc86b (diff)
downloadchromium_src-4f17e3ba905f08c359ef9c50cc08ef36735af865.zip
chromium_src-4f17e3ba905f08c359ef9c50cc08ef36735af865.tar.gz
chromium_src-4f17e3ba905f08c359ef9c50cc08ef36735af865.tar.bz2
Fix a UMR in MakePlatformWheelEvent().
The problem is that WebMouseWheelEvent(HWND, UINT, WPARAM, LPARAM) does not initialize "modifiers". Moved the initialization into base class to avoid the same mistake in the future. Review URL: http://codereview.chromium.org/9766 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webinputevent_win.cc')
-rw-r--r--webkit/glue/webinputevent_win.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/webkit/glue/webinputevent_win.cc b/webkit/glue/webinputevent_win.cc
index 7933427..a359db9 100644
--- a/webkit/glue/webinputevent_win.cc
+++ b/webkit/glue/webinputevent_win.cc
@@ -96,7 +96,6 @@ WebMouseEvent::WebMouseEvent(HWND hwnd, UINT message, WPARAM wparam,
// set modifiers:
- modifiers = 0;
if (wparam & MK_CONTROL)
modifiers |= CTRL_KEY;
if (wparam & MK_SHIFT)
@@ -249,7 +248,6 @@ WebMouseWheelEvent::WebMouseWheelEvent(HWND hwnd, UINT message, WPARAM wparam,
WebKeyboardEvent::WebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam,
LPARAM lparam) {
- modifiers = 0;
system_key = false;
actual_message.hwnd = hwnd;