Fixed: Links now work.

Fixed: Selection cursor no longer shows when clicking on a link.
(These are the same fixes as Stability branch bugs 312562 and 312563)
This commit is contained in:
rods@netscape.com
1998-08-06 16:29:45 +00:00
parent 691f92ed67
commit a23d1a1dbd
3 changed files with 28 additions and 26 deletions

View File

@@ -95,6 +95,20 @@ NS_METHOD nsHTMLContainerFrame::HandleEvent(nsIPresContext& aPresContext,
nsGUIEvent* aEvent,
nsEventStatus& aEventStatus)
{
// This masks out selection on the down click
if (aEvent->message == NS_MOUSE_LEFT_BUTTON_DOWN) {
nsIAtom* tag = mContent->GetTag();
if (nsHTMLAtoms::a == tag) {
nsString href;
mContent->GetAttribute(nsString("href"), href);
if (href.Length() > 0) {
NS_RELEASE(tag);
return NS_OK;
}
}
NS_RELEASE(tag);
}
return nsContainerFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}