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

@@ -91,9 +91,9 @@ nsHTMLContainerFrame::CreatePlaceholderFrame(nsIPresContext& aPresContext,
// The placeholder frame gets a pseudo style context
nsIStyleContext* kidSC;
aFloatedFrame->GetStyleContext(&kidSC);
nsIStyleContext* placeholderPseudoStyle =
aPresContext.ResolvePseudoStyleContextFor(content,
nsHTMLAtoms::placeholderPseudo, kidSC);
nsIStyleContext* placeholderPseudoStyle;
aPresContext.ResolvePseudoStyleContextFor(content, nsHTMLAtoms::placeholderPseudo,
kidSC, &placeholderPseudoStyle);
NS_RELEASE(kidSC);
placeholder->Init(aPresContext, content, this, placeholderPseudoStyle);
NS_RELEASE(placeholderPseudoStyle);