augmented ReResolveStyleContext to capture style change information

git-svn-id: svn://10.0.0.236/trunk@25093 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-03-25 06:43:38 +00:00
parent 2035dfb07e
commit 233822bc0d
36 changed files with 635 additions and 329 deletions

View File

@@ -294,20 +294,3 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
}
return NS_OK;
}
void
nsHTMLContainerFrame::UpdateStyleContexts(nsIPresContext& aPresContext,
nsIFrame* aFrame,
nsIFrame* aOldParent,
nsIFrame* aNewParent)
{
nsIStyleContext* oldParentSC;
aOldParent->GetStyleContext(&oldParentSC);
nsIStyleContext* newParentSC;
aNewParent->GetStyleContext(&newParentSC);
if (oldParentSC != newParentSC) {
aFrame->ReResolveStyleContext(&aPresContext, newParentSC);
}
NS_RELEASE(oldParentSC);
NS_RELEASE(newParentSC);
}