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:
rbs%maths.uq.edu.au 2003-10-07 08:27:40 +00:00
parent f9e0e5e142
commit 621378faa2

View File

@ -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;
}
}
}
}