Bug 1532901 - Fix event.screenX and event.screenY inside out-of-process iframes. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D25582
This commit is contained in:
Henri Sivonen
2019-04-09 10:26:31 +00:00
parent 8b8dc6e1c7
commit a6a93e1f64
8 changed files with 80 additions and 3 deletions

View File

@@ -286,6 +286,15 @@ void PuppetWidget::Invalidate(const LayoutDeviceIntRect& aRect) {
}
}
mozilla::LayoutDeviceToLayoutDeviceMatrix4x4
PuppetWidget::WidgetToTopLevelWidgetTransform() {
if (!GetOwningTabChild()) {
NS_WARNING("PuppetWidget without Tab does not have transform information.");
return mozilla::LayoutDeviceToLayoutDeviceMatrix4x4();
}
return GetOwningTabChild()->GetChildToParentConversionMatrix();
}
void PuppetWidget::InitEvent(WidgetGUIEvent& aEvent,
LayoutDeviceIntPoint* aPoint) {
if (nullptr == aPoint) {