Create style context for blank frame; added in some missing release calls

git-svn-id: svn://10.0.0.236/trunk@12868 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-10-15 05:13:21 +00:00
parent 13f8faca02
commit e0132151d4
2 changed files with 14 additions and 2 deletions

View File

@@ -998,7 +998,11 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
for (int blankX = mChildCount; blankX < numCells; blankX++) {
// XXX the blank frame is using the content of its parent - at some point it should just have null content
nsHTMLFramesetBlankFrame* blankFrame = new nsHTMLFramesetBlankFrame(mContent, this);
//GetStyleContext(&aPresContext, blankFrame->mStyleContext); // set the blank frame's style context
nsIStyleContext* pseudoStyleContext =
aPresContext.ResolvePseudoStyleContextFor(nsHTMLAtoms::framesetBlankPseudo, this);
blankFrame->SetStyleContext(&aPresContext, pseudoStyleContext);
NS_RELEASE(pseudoStyleContext);
if (nsnull == lastChild) {
mFirstChild = blankFrame;
} else {
@@ -1035,6 +1039,7 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
nsIStyleContext* pseudoStyleContext =
aPresContext.ResolvePseudoStyleContextFor(nsHTMLAtoms::horizontalFramesetBorderPseudo, this);
borderFrame->SetStyleContext(&aPresContext, pseudoStyleContext);
NS_RELEASE(pseudoStyleContext);
mChildCount++;
lastChild->SetNextSibling(borderFrame);
@@ -1059,6 +1064,7 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext& aPresContext,
nsIStyleContext* pseudoStyleContext =
aPresContext.ResolvePseudoStyleContextFor(nsHTMLAtoms::verticalFramesetBorderPseudo, this);
borderFrame->SetStyleContext(&aPresContext, pseudoStyleContext);
NS_RELEASE(pseudoStyleContext);
mChildCount++;
lastChild->SetNextSibling(borderFrame);