diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-14 22:04:32 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-14 22:04:32 -0400 |
commit | e215bfbb802a4c854aa7323c698ea5dff4045e25 (patch) | |
tree | f58f4b3dc8d9440f40840f635b39c8eefefe6cca /layout/forms/nsComboboxControlFrame.cpp | |
parent | b356448d145cbd294d051624512bfbfaaf18d9b6 (diff) | |
download | UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.gz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.lz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.xz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.zip |
Bug 1334247 - Remove nsIAnonymousContentCreator::CreateFrameFor
Tag #1375
Diffstat (limited to 'layout/forms/nsComboboxControlFrame.cpp')
-rw-r--r-- | layout/forms/nsComboboxControlFrame.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 78185616f..9d8d639ee 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -249,6 +249,7 @@ nsComboboxControlFrame::~nsComboboxControlFrame() //-------------------------------------------------------------- NS_QUERYFRAME_HEAD(nsComboboxControlFrame) + NS_QUERYFRAME_ENTRY(nsComboboxControlFrame) NS_QUERYFRAME_ENTRY(nsIComboboxControlFrame) NS_QUERYFRAME_ENTRY(nsIFormControlFrame) NS_QUERYFRAME_ENTRY(nsIAnonymousContentCreator) @@ -1350,16 +1351,9 @@ nsComboboxDisplayFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, } nsIFrame* -nsComboboxControlFrame::CreateFrameFor(nsIContent* aContent) +nsComboboxControlFrame::CreateFrameForDisplayNode() { - NS_PRECONDITION(nullptr != aContent, "null ptr"); - - NS_ASSERTION(mDisplayContent, "mDisplayContent can't be null!"); - - if (mDisplayContent != aContent) { - // We only handle the frames for mDisplayContent here - return nullptr; - } + MOZ_ASSERT(mDisplayContent); // Get PresShell nsIPresShell *shell = PresContext()->PresShell(); @@ -1384,7 +1378,7 @@ nsComboboxControlFrame::CreateFrameFor(nsIContent* aContent) nsIFrame* textFrame = NS_NewTextFrame(shell, textStyleContext); // initialize the text frame - textFrame->Init(aContent, mDisplayFrame, nullptr); + textFrame->Init(mDisplayContent, mDisplayFrame, nullptr); mDisplayContent->SetPrimaryFrame(textFrame); nsFrameList textList(textFrame, textFrame); |