Fix gcc 2.7 bustage. It smells a lot like a bug in gcc. It was having

trouble dealing with the Inherited typedef in the class declaration.
I replaced |Inherited| with the real thing Inherited was aliasing and all is
ok.  Pierre code reviewed.
This commit is contained in:
ramiro%netscape.com 1999-08-06 07:14:43 +00:00
Родитель 310d461115
Коммит acd040bfa4
4 изменённых файлов: 4 добавлений и 4 удалений

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

@ -86,7 +86,7 @@ nsGfxRadioControlFrame::ReResolveStyleContext(nsIPresContext* aPresContext,
&mRadioButtonFaceStyle); &mRadioButtonFaceStyle);
if ((mRadioButtonFaceStyle && oldRadioButtonFaceStyle.get()) && (mRadioButtonFaceStyle != oldRadioButtonFaceStyle.get())) { if ((mRadioButtonFaceStyle && oldRadioButtonFaceStyle.get()) && (mRadioButtonFaceStyle != oldRadioButtonFaceStyle.get())) {
Inherited::CaptureStyleChangeFor(this, oldRadioButtonFaceStyle, mRadioButtonFaceStyle, nsRadioControlFrame::CaptureStyleChangeFor(this, oldRadioButtonFaceStyle, mRadioButtonFaceStyle,
aParentChange, aChangeList, aLocalChange); aParentChange, aChangeList, aLocalChange);
} }

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

@ -86,7 +86,7 @@ nsGfxRadioControlFrame::ReResolveStyleContext(nsIPresContext* aPresContext,
&mRadioButtonFaceStyle); &mRadioButtonFaceStyle);
if ((mRadioButtonFaceStyle && oldRadioButtonFaceStyle.get()) && (mRadioButtonFaceStyle != oldRadioButtonFaceStyle.get())) { if ((mRadioButtonFaceStyle && oldRadioButtonFaceStyle.get()) && (mRadioButtonFaceStyle != oldRadioButtonFaceStyle.get())) {
Inherited::CaptureStyleChangeFor(this, oldRadioButtonFaceStyle, mRadioButtonFaceStyle, nsRadioControlFrame::CaptureStyleChangeFor(this, oldRadioButtonFaceStyle, mRadioButtonFaceStyle,
aParentChange, aChangeList, aLocalChange); aParentChange, aChangeList, aLocalChange);
} }

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

@ -429,7 +429,7 @@ nsGfxTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
// Allow the base class to handle common attributes supported // Allow the base class to handle common attributes supported
// by all form elements... // by all form elements...
else { else {
result = Inherited::AttributeChanged(aPresContext, aChild, aAttribute, aHint); result = nsFormControlFrame::AttributeChanged(aPresContext, aChild, aAttribute, aHint);
} }
// DUMMY // DUMMY

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

@ -77,7 +77,7 @@ nsNativeFormControlFrame::Reflow(nsIPresContext& aPresContext,
} }
if (! requiresWidget) { if (! requiresWidget) {
return Inherited::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus); return nsFormControlFrame::Reflow(aPresContext, aDesiredSize, aReflowState, aStatus);
} }
// add ourself as an nsIFormControlFrame // add ourself as an nsIFormControlFrame