Start out with our display textnode in the right state so we don't require

two-pass reflow (which printing can't handle) to display comboboxes right. Bug
311380, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2005-10-20 23:19:22 +00:00
Родитель fddd007530
Коммит 3d61b57735
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -2086,8 +2086,10 @@ nsComboboxControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
if (labelContent) { if (labelContent) {
// set the value of the text node // set the value of the text node
mDisplayContent.swap(labelContent); mDisplayContent.swap(labelContent);
mDisplayedIndex = -1; mListControlFrame->GetSelectedIndex(&mDisplayedIndex);
mDisplayedOptionText.Truncate(); if (mDisplayedIndex != -1) {
mListControlFrame->GetOptionText(mDisplayedIndex, mDisplayedOptionText);
}
ActuallyDisplayText(PR_FALSE); ActuallyDisplayText(PR_FALSE);
nsCOMPtr<nsINodeInfo> nodeInfo; nsCOMPtr<nsINodeInfo> nodeInfo;