API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor

This commit is contained in:
troy@netscape.com
1999-02-11 15:56:23 +00:00
parent 787f275561
commit f39b9cee08
30 changed files with 141 additions and 114 deletions

View File

@@ -307,7 +307,8 @@ NS_IMETHODIMP nsComboboxControlFrame::Reflow(nsIPresContext& aPresConte
//nsIFrame* childFrame;
if (1 == numChildren) {
nsIAtom * textBlockContentPseudo = NS_NewAtom(":COMBOBOX-TEXT");
mBlockTextStyle = aPresContext.ResolvePseudoStyleContextFor(mContent, textBlockContentPseudo, mStyleContext);
aPresContext.ResolvePseudoStyleContextFor(mContent, textBlockContentPseudo,
mStyleContext, &mBlockTextStyle);
NS_RELEASE(textBlockContentPseudo);
// XXX This code should move to Init(), someday when the frame construction