mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
remap style contexts that don't get swapped when computing style changes
This commit is contained in:
parent
f3c1120baa
commit
bcb317606a
@ -897,6 +897,9 @@ FrameManager::ReResolveStyleContext(nsIPresContext& aPresContext,
|
||||
aFrame->SetStyleContext(&aPresContext, newContext);
|
||||
}
|
||||
}
|
||||
else {
|
||||
oldContext->RemapStyle(&aPresContext, PR_FALSE);
|
||||
}
|
||||
NS_RELEASE(oldContext);
|
||||
}
|
||||
else {
|
||||
|
@ -897,6 +897,9 @@ FrameManager::ReResolveStyleContext(nsIPresContext& aPresContext,
|
||||
aFrame->SetStyleContext(&aPresContext, newContext);
|
||||
}
|
||||
}
|
||||
else {
|
||||
oldContext->RemapStyle(&aPresContext, PR_FALSE);
|
||||
}
|
||||
NS_RELEASE(oldContext);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user