Fix for blocker bug #14464. Reviewed by Hyatt, checkin permission by leaf.

This commit is contained in:
saari%netscape.com 1999-09-23 01:55:41 +00:00
parent 46ee5b7f29
commit 83ab100d9c
2 changed files with 14 additions and 2 deletions

View File

@ -773,6 +773,12 @@ nsGenericElement::HandleDOMEvent(nsIPresContext& aPresContext,
if (NS_EVENT_FLAG_BUBBLE != aFlags) {
if (nsnull != mDOMSlots && nsnull != mDOMSlots->mCapturer) {
mDOMSlots->mCapturer->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, NS_EVENT_FLAG_CAPTURE, aEventStatus);
} else {
// Node capturing stage
if (mParent) {
// Pass off to our parent.
mParent->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, NS_EVENT_FLAG_CAPTURE, aEventStatus);
}
}
}

View File

@ -773,6 +773,12 @@ nsGenericElement::HandleDOMEvent(nsIPresContext& aPresContext,
if (NS_EVENT_FLAG_BUBBLE != aFlags) {
if (nsnull != mDOMSlots && nsnull != mDOMSlots->mCapturer) {
mDOMSlots->mCapturer->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, NS_EVENT_FLAG_CAPTURE, aEventStatus);
} else {
// Node capturing stage
if (mParent) {
// Pass off to our parent.
mParent->HandleDOMEvent(aPresContext, aEvent, aDOMEvent, NS_EVENT_FLAG_CAPTURE, aEventStatus);
}
}
}