Fix build bustage. Bug 302186.

git-svn-id: svn://10.0.0.236/trunk@207547 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2006-08-16 05:21:44 +00:00
parent ec020514bd
commit e1a427f68f

View File

@ -3349,7 +3349,10 @@ nsGenericHTMLFormElement::IntrinsicState() const
}
}
if (mForm && mForm->GetDefaultSubmitElement() == this) {
if (mForm &&
// XXXbz Need the cast to make VC++6 happy.
NS_STATIC_CAST(const nsIFormControl*,
mForm->GetDefaultSubmitElement()) == this) {
NS_ASSERTION(IsSubmitControl(),
"Default submit element that isn't a submit control.");
// We are the default submit element (:default)