| Index: third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| index 62b5aed35452405c407653f38f16c6c999ff5d6b..29d148ae9df33892a8c9763ce246c9d5e9cbc8c7 100644
|
| --- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
|
| @@ -396,13 +396,13 @@ short MouseEvent::button() const {
|
| return button_;
|
| }
|
|
|
| -int MouseEvent::which() const {
|
| +unsigned MouseEvent::which() const {
|
| // For the DOM, the return values for left, middle and right mouse buttons are
|
| // 0, 1, 2, respectively.
|
| // For the Netscape "which" property, the return values for left, middle and
|
| // right mouse buttons are 1, 2, 3, respectively.
|
| // So we must add 1.
|
| - return button_ + 1;
|
| + return (unsigned)(button_ + 1);
|
| }
|
|
|
| Node* MouseEvent::toElement() const {
|
|
|