| Index: content/browser/renderer_host/web_input_event_aura.cc
|
| diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc
|
| index 55932b28d535012bebd184b3a2cd1c6dcaf76253..dfec167bda3d92e485d9a17165bd32127706d4c2 100644
|
| --- a/content/browser/renderer_host/web_input_event_aura.cc
|
| +++ b/content/browser/renderer_host/web_input_event_aura.cc
|
| @@ -360,16 +360,11 @@
|
| webkit_event.timeStampSeconds = event->time_stamp().InSecondsF();
|
|
|
| webkit_event.button = blink::WebMouseEvent::ButtonNone;
|
| - int button_flags = event->flags();
|
| - if (event->type() == ui::ET_MOUSE_PRESSED ||
|
| - event->type() == ui::ET_MOUSE_RELEASED) {
|
| - button_flags = event->changed_button_flags();
|
| - }
|
| - if (button_flags & ui::EF_LEFT_MOUSE_BUTTON)
|
| + if (event->flags() & ui::EF_LEFT_MOUSE_BUTTON)
|
| webkit_event.button = blink::WebMouseEvent::ButtonLeft;
|
| - if (button_flags & ui::EF_MIDDLE_MOUSE_BUTTON)
|
| + if (event->flags() & ui::EF_MIDDLE_MOUSE_BUTTON)
|
| webkit_event.button = blink::WebMouseEvent::ButtonMiddle;
|
| - if (button_flags & ui::EF_RIGHT_MOUSE_BUTTON)
|
| + if (event->flags() & ui::EF_RIGHT_MOUSE_BUTTON)
|
| webkit_event.button = blink::WebMouseEvent::ButtonRight;
|
|
|
| switch (event->type()) {
|
|
|