diff --git a/layout/forms/nsHTMLButtonControlFrame.cpp b/layout/forms/nsHTMLButtonControlFrame.cpp
index 07aa660b8a1f..c3e579ea614e 100644
--- a/layout/forms/nsHTMLButtonControlFrame.cpp
+++ b/layout/forms/nsHTMLButtonControlFrame.cpp
@@ -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);
}
diff --git a/layout/html/forms/src/nsHTMLButtonControlFrame.cpp b/layout/html/forms/src/nsHTMLButtonControlFrame.cpp
index 07aa660b8a1f..c3e579ea614e 100644
--- a/layout/html/forms/src/nsHTMLButtonControlFrame.cpp
+++ b/layout/html/forms/src/nsHTMLButtonControlFrame.cpp
@@ -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);
}