Fixed PseudoStyle resolution for primary style context in ReResolveStyleContext: was passing child-content when it should be passing parent-content. r=pierre
git-svn-id: svn://10.0.0.236/trunk@66898 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1180,7 +1180,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
|
||||
// do primary context
|
||||
nsIStyleContext* newContext = nsnull;
|
||||
if (pseudoTag) {
|
||||
aPresContext->ResolvePseudoStyleContextFor(content, pseudoTag, aParentContext, PR_FALSE,
|
||||
aPresContext->ResolvePseudoStyleContextFor(aParentContent, pseudoTag, aParentContext, PR_FALSE,
|
||||
&newContext);
|
||||
NS_RELEASE(pseudoTag);
|
||||
}
|
||||
|
||||
@@ -1180,7 +1180,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
|
||||
// do primary context
|
||||
nsIStyleContext* newContext = nsnull;
|
||||
if (pseudoTag) {
|
||||
aPresContext->ResolvePseudoStyleContextFor(content, pseudoTag, aParentContext, PR_FALSE,
|
||||
aPresContext->ResolvePseudoStyleContextFor(aParentContent, pseudoTag, aParentContext, PR_FALSE,
|
||||
&newContext);
|
||||
NS_RELEASE(pseudoTag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user