Commit bbe02b76 authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Remove comparison operator for WebMouseWheel and WebTouchEvent.

Add helper to MainThreadEventQueue unittest to compare the fields
of the classes instead of using a memcmp function.

BUG=836826

Change-Id: Iaa280074743593d8687ce923c48f778d16f1d4fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1979260
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728035}
parent f0170685
...@@ -124,11 +124,6 @@ class BLINK_COMMON_EXPORT WebMouseWheelEvent : public WebMouseEvent { ...@@ -124,11 +124,6 @@ class BLINK_COMMON_EXPORT WebMouseWheelEvent : public WebMouseEvent {
bool IsCancelable() const { return dispatch_type == kBlocking; } bool IsCancelable() const { return dispatch_type == kBlocking; }
}; };
inline bool operator==(const WebMouseWheelEvent& a,
const WebMouseWheelEvent& b) {
return memcmp(&a, &b, a.size()) == 0;
}
} // namespace blink } // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_COMMON_INPUT_WEB_MOUSE_WHEEL_EVENT_H_ #endif // THIRD_PARTY_BLINK_PUBLIC_COMMON_INPUT_WEB_MOUSE_WHEEL_EVENT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment