Bug 1809920 - Make WidgetPointerEvent use int32_t for mWidth/mHeight; r=smaug

The value are assigned from `Touch::mRadius`, https://searchfox.org/mozilla-central/rev/893a8f062ec6144c84403fbfb0a57234418b89cf/dom/events/PointerEventHandler.cpp#550-551,
which is a `IntPointTyped<LayoutDevicePixel>`, https://searchfox.org/mozilla-central/rev/893a8f062ec6144c84403fbfb0a57234418b89cf/gfx/2d/Point.h#66.

Differential Revision: https://phabricator.services.mozilla.com/D166696
This commit is contained in:
Edgar Chen 2023-01-12 20:17:51 +00:00
parent 3bfc7ebe13
commit bacb13e934

View File

@ -714,8 +714,8 @@ class WidgetPointerEvent : public WidgetMouseEvent {
return result;
}
uint32_t mWidth;
uint32_t mHeight;
int32_t mWidth;
int32_t mHeight;
bool mIsPrimary;
bool mFromTouchEvent;