mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Re-sync some weak style pointers when the primary one is changed, patch by steve.swanson@mackichan.com, r+sr=rbs
This commit is contained in:
parent
f9e0e5e142
commit
621378faa2
@ -1293,6 +1293,13 @@ nsMathMLChar::SetStyleContext(nsStyleContext* aStyleContext)
|
||||
if (aStyleContext) {
|
||||
mStyleContext = aStyleContext;
|
||||
aStyleContext->AddRef();
|
||||
|
||||
// Sync the pointers of child chars.
|
||||
nsMathMLChar* child = mSibling;
|
||||
while (child) {
|
||||
child->mStyleContext = mStyleContext;
|
||||
child = child->mSibling;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user