зеркало из https://github.com/mozilla/gecko-dev.git
Commented out the rollover code that sets the class to a pseudo-class
This commit is contained in:
Родитель
c0c66b9c35
Коммит
785ddfe1a6
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче