Bug 493652: First-line style applies to two lines when first-letter style also used. r+sr=roc, a=dveditz

git-svn-id: svn://10.0.0.236/trunk@257466 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
smontagu%smontagu.org 2009-06-11 15:26:21 +00:00
parent 0ac9fd3d80
commit 594d1b97d5
2 changed files with 4 additions and 1 deletions

View File

@ -5823,6 +5823,9 @@ nsTextFrame::Reflow(nsPresContext* aPresContext,
} else if (breakAfter) {
aStatus = NS_INLINE_LINE_BREAK_AFTER(aStatus);
}
if (completedFirstLetter) {
lineLayout.SetFirstLetterStyleOK(PR_FALSE);
}
// Compute space and letter counts for justification, if required
if (NS_STYLE_TEXT_ALIGN_JUSTIFY == textStyle->mTextAlign &&

View File

@ -30,7 +30,7 @@
== 18217-zorder-3.html 18217-zorder-ref-inline.html
== 18217-zorder-4.html 18217-zorder-ref-inline-table.html
== 18217-zorder-5.html 18217-zorder-ref-inline-table.html
fails == 23604-1.html 23604-1-ref.html # bug 429968
== 23604-1.html 23604-1-ref.html
== 23604-2.html 23604-2-ref.html
!= 24998-1.html 24998-1-ref.html
fails == 25888-1l.html 25888-1l-ref.html # bug 25888