Commented out the rollover code that sets the class to a pseudo-class

This commit is contained in:
rods%netscape.com 1999-02-11 18:36:40 +00:00
Родитель c0c66b9c35
Коммит 785ddfe1a6
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -486,7 +486,7 @@ nsHTMLButtonControlFrame::HandleEvent(nsIPresContext& aPresContext,
if ((grabber == view) || (nsnull == grabber)) {
switch (aEvent->message) {
case NS_MOUSE_ENTER:
mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "ROLLOVER", PR_TRUE);
//mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "ROLLOVER", PR_TRUE);
if (mLastMouseState == eMouseDown) {
ShiftContents(aPresContext, PR_TRUE);
}
@ -506,7 +506,7 @@ nsHTMLButtonControlFrame::HandleEvent(nsIPresContext& aPresContext,
}
break;
case NS_MOUSE_EXIT:
mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "", PR_TRUE);
//mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "", PR_TRUE);
if (mLastMouseState == eMouseDown) {
ShiftContents(aPresContext, PR_FALSE);
}

Просмотреть файл

@ -486,7 +486,7 @@ nsHTMLButtonControlFrame::HandleEvent(nsIPresContext& aPresContext,
if ((grabber == view) || (nsnull == grabber)) {
switch (aEvent->message) {
case NS_MOUSE_ENTER:
mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "ROLLOVER", PR_TRUE);
//mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "ROLLOVER", PR_TRUE);
if (mLastMouseState == eMouseDown) {
ShiftContents(aPresContext, PR_TRUE);
}
@ -506,7 +506,7 @@ nsHTMLButtonControlFrame::HandleEvent(nsIPresContext& aPresContext,
}
break;
case NS_MOUSE_EXIT:
mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "", PR_TRUE);
//mContent->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::kClass, "", PR_TRUE);
if (mLastMouseState == eMouseDown) {
ShiftContents(aPresContext, PR_FALSE);
}