Bug 1455055 part 7. Clean up remaining HandleEvent implementations. r=masayuki

MozReview-Commit-ID: LezJYKK74H5
This commit is contained in:
Boris Zbarsky
2018-04-20 00:49:30 -04:00
parent 841545ca39
commit ced355935b
9 changed files with 39 additions and 48 deletions

View File

@@ -926,8 +926,7 @@ nsDocShellTreeOwner::RemoveChromeListeners()
NS_IMETHODIMP
nsDocShellTreeOwner::HandleEvent(Event* aEvent)
{
DragEvent* dragEvent =
aEvent ? aEvent->InternalDOMEvent()->AsDragEvent() : nullptr;
DragEvent* dragEvent = aEvent ? aEvent->AsDragEvent() : nullptr;
if (NS_WARN_IF(!dragEvent)) {
return NS_ERROR_INVALID_ARG;
}