diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 909d7e00023d..03e3efdcad40 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -928,17 +928,6 @@ nsFrame::HandlePress(nsIPresContext* aPresContext, return NS_OK; } -//IF THIS FRAME IS GENERATED - result = kid->GetFrameState(&frameState); - - if (NS_FAILED(result)) - return result; - - if (frameState & NS_FRAME_GENERATED_CONTENT) { - // It's generated content, so skip it! - skipThisKid = PR_TRUE; - - nsMouseEvent *me = (nsMouseEvent *)aEvent; if (me->clickCount >1 ) return HandleMultiplePress(aPresContext,aEvent,aEventStatus); diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index 909d7e00023d..03e3efdcad40 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -928,17 +928,6 @@ nsFrame::HandlePress(nsIPresContext* aPresContext, return NS_OK; } -//IF THIS FRAME IS GENERATED - result = kid->GetFrameState(&frameState); - - if (NS_FAILED(result)) - return result; - - if (frameState & NS_FRAME_GENERATED_CONTENT) { - // It's generated content, so skip it! - skipThisKid = PR_TRUE; - - nsMouseEvent *me = (nsMouseEvent *)aEvent; if (me->clickCount >1 ) return HandleMultiplePress(aPresContext,aEvent,aEventStatus);