Bug 920377 part.32 Get rid of nsMouseEvent r=roc

This commit is contained in:
Masayuki Nakano
2013-10-02 15:38:27 +09:00
parent ecb0831a93
commit ed3fbdf704
76 changed files with 666 additions and 572 deletions

View File

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