diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 6b897d315b13..70329d76b396 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -1831,7 +1831,7 @@ nsComboboxControlFrame::CreateFrameFor(nsPresContext* aPresContext, *aFrame = nsnull; NS_ASSERTION(mDisplayContent, "mDisplayContent can't be null!"); - if (mDisplayContent == aContent) { + if (mDisplayContent != aContent) { // We only handle the frames for mDisplayContent here return NS_ERROR_FAILURE; }