Clear first-letter state when leaving the first-letter frame inserted by the frame constructor. Bug 402380, r+sr+blocking1.9=roc

This commit is contained in:
smontagu@smontagu.org 2007-11-11 11:44:33 -08:00
parent 70475edc47
commit bf99c0bd51

View File

@ -307,6 +307,9 @@ nsFirstLetterFrame::Reflow(nsPresContext* aPresContext,
// Create a continuation or remove existing continuations based on
// the reflow completion status.
if (NS_FRAME_IS_COMPLETE(aReflowStatus)) {
if (aReflowState.mLineLayout) {
aReflowState.mLineLayout->SetFirstLetterStyleOK(PR_FALSE);
}
nsIFrame* kidNextInFlow = kid->GetNextInFlow();
if (kidNextInFlow) {
// Remove all of the childs next-in-flows