Bug 1557160. Stop Event::GetScreenCoords from converting from visual to layout coords. r=botond

Screen coords are not layout coords.

Differential Revision: https://phabricator.services.mozilla.com/D74788
This commit is contained in:
Timothy Nikkel 2020-05-12 04:53:37 +00:00
parent be25a1cf76
commit c05c933851

View File

@ -550,10 +550,6 @@ CSSIntPoint Event::GetScreenCoords(nsPresContext* aPresContext,
rounded,
aPresContext->DeviceContext()->AppUnitsPerDevPixelAtUnitFullZoom());
if (PresShell* shell = aPresContext->GetPresShell()) {
pt = ViewportUtils::VisualToLayout(pt, shell);
}
pt += LayoutDevicePixel::ToAppUnits(
guiEvent->mWidget->TopLevelWidgetToScreenOffset(),
aPresContext->DeviceContext()->AppUnitsPerDevPixelAtUnitFullZoom());