Bug 2279: Don't create widgets for hidden form elements.

This commit is contained in:
pollmann%netscape.com 1999-01-26 22:11:59 +00:00
Родитель cc7c2bba59
Коммит 34845beb96
2 изменённых файлов: 8 добавлений и 4 удалений

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

@ -275,8 +275,10 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
SetView(view);
}
const nsIID& id = GetCID();
if (PR_TRUE == supportsWidgets) {
PRInt32 type;
GetType(&type);
const nsIID& id = GetCID();
if ((NS_FORM_INPUT_HIDDEN != type) && (PR_TRUE == supportsWidgets)) {
// Do the following only if a widget is created
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
view->CreateWidget(id, initData);

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

@ -275,8 +275,10 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
SetView(view);
}
const nsIID& id = GetCID();
if (PR_TRUE == supportsWidgets) {
PRInt32 type;
GetType(&type);
const nsIID& id = GetCID();
if ((NS_FORM_INPUT_HIDDEN != type) && (PR_TRUE == supportsWidgets)) {
// Do the following only if a widget is created
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
view->CreateWidget(id, initData);