Bug 920425 part.28 Use mozilla::WidgetEvent::AsMouseEvent() r=smaug

This commit is contained in:
Masayuki Nakano
2013-10-22 17:55:20 +09:00
parent 7de0fc0245
commit 385d2f53af
33 changed files with 281 additions and 340 deletions

View File

@@ -694,8 +694,7 @@ nsIContent::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
((this == aVisitor.mEvent->originalTarget &&
!ChromeOnlyAccess()) || isAnonForEvents)) {
nsCOMPtr<nsIContent> relatedTarget =
do_QueryInterface(
static_cast<WidgetMouseEvent*>(aVisitor.mEvent)->relatedTarget);
do_QueryInterface(aVisitor.mEvent->AsMouseEvent()->relatedTarget);
if (relatedTarget &&
relatedTarget->OwnerDoc() == OwnerDoc()) {