Fix blocker bug #52039 (crash when resolving pseudo-style for anonymous content).

This commit is contained in:
pierre%netscape.com 2000-09-11 03:58:22 +00:00
parent a7a367d907
commit 84f381ec78
2 changed files with 4 additions and 2 deletions

View File

@ -1268,7 +1268,8 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
// do primary context
nsIStyleContext* newContext = nsnull;
if (pseudoTag) {
aPresContext->ResolvePseudoStyleContextFor(aParentContent, pseudoTag, aParentContext, PR_FALSE,
nsIContent* pseudoContent = (aParentContent ? aParentContent : localContent);
aPresContext->ResolvePseudoStyleContextFor(pseudoContent, pseudoTag, aParentContext, PR_FALSE,
&newContext);
NS_RELEASE(pseudoTag);
}

View File

@ -1268,7 +1268,8 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
// do primary context
nsIStyleContext* newContext = nsnull;
if (pseudoTag) {
aPresContext->ResolvePseudoStyleContextFor(aParentContent, pseudoTag, aParentContext, PR_FALSE,
nsIContent* pseudoContent = (aParentContent ? aParentContent : localContent);
aPresContext->ResolvePseudoStyleContextFor(pseudoContent, pseudoTag, aParentContext, PR_FALSE,
&newContext);
NS_RELEASE(pseudoTag);
}