diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 15258a5ff2e5..ac342cb320ad 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -593,7 +593,7 @@ nsComboboxControlFrame::GetPrefWidth(nsIRenderingContext *aRenderingContext) nsIScrollableFrame* scrollable; CallQueryInterface(mListControlFrame, &scrollable); NS_ASSERTION(scrollable, "List must be a scrollable frame"); - nsBoxLayoutState bls(GetPresContext(), aRenderingContext); + nsBoxLayoutState bls(PresContext(), aRenderingContext); nscoord displayResult = scrollable->GetDesiredScrollbarSizes(&bls).LeftRight() + nsLayoutUtils::IntrinsicForContainer(aRenderingContext, mDisplayFrame,