fix for setcapture. passes events to the nsHTMLFrame's areaframe when events are trapped to a given frame's view.

This commit is contained in:
mjudge@netscape.com
2000-04-12 03:04:11 +00:00
parent c54dc2465c
commit abfa134534
19 changed files with 401 additions and 120 deletions

View File

@@ -3399,7 +3399,7 @@ PresShell::HandleEvent(nsIView *aView,
rv = frame->GetFrameForPoint(mPresContext, eventPoint, NS_FRAME_PAINT_LAYER_BACKGROUND, &mCurrentEventFrame);
if (rv != NS_OK) {
// XXX Is this the right thing to do?
mCurrentEventFrame = nsnull;
mCurrentEventFrame = frame;
aHandled = PR_FALSE;
rv = NS_OK;
}
@@ -3421,8 +3421,9 @@ PresShell::HandleEvent(nsIView *aView,
if (rv != NS_OK) {
rv = frame->GetFrameForPoint(mPresContext, eventPoint, NS_FRAME_PAINT_LAYER_BACKGROUND, &mCurrentEventFrame);
if (rv != NS_OK) {
// XXX Is this the right thing to do?
mCurrentEventFrame = nsnull;
// XXX Is this the right thing to do? NO IT ISNT!
mCurrentEventFrame = frame;
//mCurrentEventFrame = nsnull;
aHandled = PR_FALSE;
rv = NS_OK;
}