Bug 1420589 Part4: Revise PointerEventHandler utilities. r=smaug.

MozReview-Commit-ID: DpGrbbYJbzh
This commit is contained in:
Stone Shih
2017-12-09 08:56:11 +08:00
parent 0ae169a09e
commit 07f90c015e
3 changed files with 31 additions and 28 deletions

View File

@@ -7186,7 +7186,12 @@ PresShell::HandleEvent(nsIFrame* aFrame,
}
}
frame = PointerEventHandler::GetPointerCapturingFrame(frame, aEvent);
nsIFrame* pointerCapturingFrame =
PointerEventHandler::GetPointerCapturingFrame(aEvent);
if (pointerCapturingFrame) {
frame = pointerCapturingFrame;
}
// Suppress mouse event if it's being targeted at an element inside
// a document which needs events suppressed