Work around some first-letter bugs

git-svn-id: svn://10.0.0.236/trunk@25157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-03-26 00:41:36 +00:00
parent a8dd90181c
commit a0bf1cc46e
6 changed files with 48 additions and 10 deletions

View File

@@ -800,6 +800,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
// the state out. We need to know how to treat the current frame
// when breaking.
PRBool notSafeToBreak = CanPlaceFloaterNow() || InWord();
PRBool firstLetterOK = mFirstLetterStyleOK;
// Apply left margins (as appropriate) to the frame computing the
// new starting x,y coordinates for the frame.
@@ -938,6 +939,8 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
parent->DeleteChildsNextInFlow(mPresContext, aFrame);
}
}
if (firstLetterOK && !mFirstLetterStyleOK) {
}
// See if we can place the frame. If we can't fit it, then we
// return now.