зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1661608 - Use correct viewport type in RecordMouseLocation(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D88676
This commit is contained in:
Родитель
1b5c9ebf54
Коммит
35448ccbee
|
@ -6646,8 +6646,12 @@ void PresShell::RecordMouseLocation(WidgetGUIEvent* aEvent) {
|
|||
mPresContext, aEvent->mWidget, aEvent->mRefPoint, rootView);
|
||||
mMouseEventTargetGuid = InputAPZContext::GetTargetLayerGuid();
|
||||
} else {
|
||||
RelativeTo relativeTo{rootFrame};
|
||||
if (rootFrame->PresContext()->IsRootContentDocumentCrossProcess()) {
|
||||
relativeTo.mViewportType = ViewportType::Visual;
|
||||
}
|
||||
mMouseLocation = nsLayoutUtils::GetEventCoordinatesRelativeTo(
|
||||
aEvent, RelativeTo{rootFrame, ViewportType::Visual});
|
||||
aEvent, relativeTo);
|
||||
mMouseEventTargetGuid = InputAPZContext::GetTargetLayerGuid();
|
||||
}
|
||||
mMouseLocationWasSetBySynthesizedMouseEventForTests =
|
||||
|
|
Загрузка…
Ссылка в новой задаче