From 561847577ee9de0e5820eccfb7021569a4809bbd Mon Sep 17 00:00:00 2001 From: "joki%netscape.com" Date: Tue, 10 Nov 1998 00:35:30 +0000 Subject: [PATCH] Stop dual event flow through both frames kids and view kids. Now flows through views. --- layout/html/base/src/nsBodyFrame.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/layout/html/base/src/nsBodyFrame.cpp b/layout/html/base/src/nsBodyFrame.cpp index a0d31636c334..3fefb18b7a4c 100644 --- a/layout/html/base/src/nsBodyFrame.cpp +++ b/layout/html/base/src/nsBodyFrame.cpp @@ -734,23 +734,27 @@ nsBodyFrame::HandleEvent(nsIPresContext& aPresContext, // our first-child first (children after the first-child are either // absolute positioned frames or are floating frames, both of which // are on top (in the z order) of the first-child). - PRInt32 n = mChildCount; + + /*XXX Commenting event dispatch to BodyFrame's absolutely positioned + * children. They already get the event through the view hierarchy. + */ + /*PRInt32 n = mChildCount;*/ nsIFrame* kid = mFirstChild; - kid->GetNextSibling(kid); + /*kid->GetNextSibling(kid); while (--n >= 0) { if (nsnull == kid) { kid = mFirstChild; - } + }*/ nsRect kidRect; kid->GetRect(kidRect); if (kidRect.Contains(aEvent->point)) { aEvent->point.MoveBy(-kidRect.x, -kidRect.y); kid->HandleEvent(aPresContext, aEvent, aEventStatus); aEvent->point.MoveBy(kidRect.x, kidRect.y); - break; + /*break;*/ } - kid->GetNextSibling(kid); - } + /*kid->GetNextSibling(kid); + }*/ // XXX Hack mouse enter/exit and cursor code. THIS DOESN'T BELONG HERE! #if 1