nsTextFrame::SetLength called from nsTextFrame::ReflowText is what ends up doing some of that textrun clearing on next-in-flows and the like.
nsTextFrame: :SetLength called from nsTextFrame: :ReflowText is what ends up doing some of that textrun clearing on next-in-flows and the like.