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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user