mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 2279: Don't create widgets for hidden form elements.
This commit is contained in:
parent
cc7c2bba59
commit
34845beb96
@ -275,8 +275,10 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
SetView(view);
|
SetView(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
const nsIID& id = GetCID();
|
PRInt32 type;
|
||||||
if (PR_TRUE == supportsWidgets) {
|
GetType(&type);
|
||||||
|
const nsIID& id = GetCID();
|
||||||
|
if ((NS_FORM_INPUT_HIDDEN != type) && (PR_TRUE == supportsWidgets)) {
|
||||||
// Do the following only if a widget is created
|
// Do the following only if a widget is created
|
||||||
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
|
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
|
||||||
view->CreateWidget(id, initData);
|
view->CreateWidget(id, initData);
|
||||||
|
@ -275,8 +275,10 @@ nsFormControlFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
SetView(view);
|
SetView(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
const nsIID& id = GetCID();
|
PRInt32 type;
|
||||||
if (PR_TRUE == supportsWidgets) {
|
GetType(&type);
|
||||||
|
const nsIID& id = GetCID();
|
||||||
|
if ((NS_FORM_INPUT_HIDDEN != type) && (PR_TRUE == supportsWidgets)) {
|
||||||
// Do the following only if a widget is created
|
// Do the following only if a widget is created
|
||||||
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
|
nsWidgetInitData* initData = GetWidgetInitData(aPresContext); // needs to be deleted
|
||||||
view->CreateWidget(id, initData);
|
view->CreateWidget(id, initData);
|
||||||
|
Loading…
Reference in New Issue
Block a user