mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Fix blocker bug #52039 (crash when resolving pseudo-style for anonymous content).
This commit is contained in:
parent
a7a367d907
commit
84f381ec78
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user