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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user