remap style contexts that don't get swapped when computing style changes

This commit is contained in:
peterl%netscape.com 1999-09-29 03:32:19 +00:00
parent f3c1120baa
commit bcb317606a
2 changed files with 6 additions and 0 deletions

View File

@ -897,6 +897,9 @@ FrameManager::ReResolveStyleContext(nsIPresContext& aPresContext,
aFrame->SetStyleContext(&aPresContext, newContext);
}
}
else {
oldContext->RemapStyle(&aPresContext, PR_FALSE);
}
NS_RELEASE(oldContext);
}
else {

View File

@ -897,6 +897,9 @@ FrameManager::ReResolveStyleContext(nsIPresContext& aPresContext,
aFrame->SetStyleContext(&aPresContext, newContext);
}
}
else {
oldContext->RemapStyle(&aPresContext, PR_FALSE);
}
NS_RELEASE(oldContext);
}
else {