stripping out all the whitespace for form data submission

commented changing the visible directly
bug 21276, r=pollmann a=chofmann
This commit is contained in:
rods%netscape.com 1999-12-14 14:16:09 +00:00
Родитель 4b6be68242
Коммит 1aa5067600
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1592,6 +1592,7 @@ nsListControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
if (mSelectedIndex >= 0) {
nsAutoString value;
GetOptionValue(*options, mSelectedIndex, value);
value.CompressWhitespace();
aNumValues = 1;
aNames[0] = name;
aValues[0] = value;
@ -2232,7 +2233,7 @@ nsListControlFrame::SyncViewWithFrame(nsIPresContext* aPresContext)
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) disp);
if (visibility != disp->mVisible) {
view->SetVisibility(NS_STYLE_VISIBILITY_VISIBLE == disp->mVisible ?nsViewVisibility_kShow:nsViewVisibility_kHide);
//view->SetVisibility(NS_STYLE_VISIBILITY_VISIBLE == disp->mVisible ?nsViewVisibility_kShow:nsViewVisibility_kHide);
}
return NS_OK;

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

@ -1592,6 +1592,7 @@ nsListControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
if (mSelectedIndex >= 0) {
nsAutoString value;
GetOptionValue(*options, mSelectedIndex, value);
value.CompressWhitespace();
aNumValues = 1;
aNames[0] = name;
aValues[0] = value;
@ -2232,7 +2233,7 @@ nsListControlFrame::SyncViewWithFrame(nsIPresContext* aPresContext)
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) disp);
if (visibility != disp->mVisible) {
view->SetVisibility(NS_STYLE_VISIBILITY_VISIBLE == disp->mVisible ?nsViewVisibility_kShow:nsViewVisibility_kHide);
//view->SetVisibility(NS_STYLE_VISIBILITY_VISIBLE == disp->mVisible ?nsViewVisibility_kShow:nsViewVisibility_kHide);
}
return NS_OK;