зеркало из https://github.com/mozilla/pjs.git
Made sure clipChildren member of widget init data is initialized
This commit is contained in:
Родитель
e326156119
Коммит
40fcbcefb4
|
@ -269,6 +269,7 @@ nsInputTextFrame::GetWidgetInitData(nsIPresContext& aPresContext)
|
|||
|
||||
if (kInputText_Password == content->GetTextType()) {
|
||||
data = new nsTextWidgetInitData();
|
||||
data->clipChildren = PR_TRUE;
|
||||
data->mIsPassword = PR_TRUE;
|
||||
}
|
||||
NS_RELEASE(content);
|
||||
|
|
|
@ -317,6 +317,7 @@ nsSelectFrame::GetWidgetInitData(nsIPresContext& aPresContext)
|
|||
nsSelect* select = (nsSelect *)mContent;
|
||||
if (select->mIsComboBox) {
|
||||
nsComboBoxInitData* initData = new nsComboBoxInitData();
|
||||
initData->clipChildren = PR_TRUE;
|
||||
float twipToPix = aPresContext.GetTwipsToPixels();
|
||||
initData->mDropDownHeight = NSTwipsToIntPixels(mWidgetSize.height, twipToPix);
|
||||
return initData;
|
||||
|
@ -327,6 +328,7 @@ nsSelectFrame::GetWidgetInitData(nsIPresContext& aPresContext)
|
|||
GetContent((nsIContent *&) content);
|
||||
if (content->IsMultiple()) {
|
||||
initData = new nsListBoxInitData();
|
||||
initData->clipChildren = PR_TRUE;
|
||||
initData->mMultiSelect = PR_TRUE;
|
||||
}
|
||||
NS_RELEASE(content);
|
||||
|
|
Загрузка…
Ссылка в новой задаче