Open Bug 1224754 Opened 9 years ago Updated 2 years ago

Fix Event::GetScreenCoords so that it always returns CSSIntPoints in the correct coordinate system

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

Tracking Status
firefox45 --- affected

People

(Reporter: rbarker, Unassigned)

References

Details

Event::GetScreenCoords is supposed to return CSSIntPoints. However there is a case when the nsPresContext is a nullptr where nsLayoutDeviceIntPoint values are returned in the CSSIntPoint return type. This was done to maintain legacy functionality. It would be better if Event::GetScreenCoords only returned CSSIntPoints containing values in the correct coordinate system.
Depends on: 1220925
Summary: Fix Event::GetScreenCoords so that it only returns CSSIntPoints → Fix Event::GetScreenCoords so that it always returns CSSIntPoints in the correct coordinate system
So it used to return the right coordinates even after event dispatch, but that regressed at some point. Has now something else changed too? or perhaps I should ask wasn't bug 1220925 suppose to fix this?
Component: Event Handling → User events and focus handling
Severity: normal → --
Component: DOM: UI Events & Focus Handling → DOM: Events
Depends on: 1753836
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.