зеркало из https://github.com/mozilla/gecko-dev.git
Bug 538062. Remove mTextFrame field from nsComboboxControlFrame since it's no longer needed. r=mats
This commit is contained in:
Родитель
5df825d88b
Коммит
3079dec660
|
@ -1170,23 +1170,23 @@ nsComboboxControlFrame::CreateFrameFor(nsIContent* aContent)
|
|||
}
|
||||
|
||||
// Create a text frame and put it inside the block frame
|
||||
mTextFrame = NS_NewTextFrame(shell, textStyleContext);
|
||||
if (NS_UNLIKELY(!mTextFrame)) {
|
||||
nsIFrame* textFrame = NS_NewTextFrame(shell, textStyleContext);
|
||||
if (NS_UNLIKELY(!textFrame)) {
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
// initialize the text frame
|
||||
rv = mTextFrame->Init(aContent, mDisplayFrame, nsnull);
|
||||
rv = textFrame->Init(aContent, mDisplayFrame, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
mDisplayFrame->Destroy();
|
||||
mDisplayFrame = nsnull;
|
||||
mTextFrame->Destroy();
|
||||
mTextFrame = nsnull;
|
||||
textFrame->Destroy();
|
||||
textFrame = nsnull;
|
||||
return nsnull;
|
||||
}
|
||||
mDisplayContent->SetPrimaryFrame(mTextFrame);
|
||||
mDisplayContent->SetPrimaryFrame(textFrame);
|
||||
|
||||
nsFrameList textList(mTextFrame, mTextFrame);
|
||||
nsFrameList textList(textFrame, textFrame);
|
||||
mDisplayFrame->SetInitialChildList(nsnull, textList);
|
||||
return mDisplayFrame;
|
||||
}
|
||||
|
|
|
@ -265,7 +265,6 @@ protected:
|
|||
nsIFrame* mDisplayFrame; // frame to display selection
|
||||
nsIFrame* mButtonFrame; // button frame
|
||||
nsIFrame* mDropdownFrame; // dropdown list frame
|
||||
nsIFrame* mTextFrame; // display area frame
|
||||
nsIListControlFrame * mListControlFrame; // ListControl Interface for the dropdown frame
|
||||
|
||||
// The width of our display area. Used by that frame's reflow to
|
||||
|
|
Загрузка…
Ссылка в новой задаче