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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user