diff --git a/mozilla/layout/generic/nsTextFrameThebes.cpp b/mozilla/layout/generic/nsTextFrameThebes.cpp index e39fea52ca6..9d9542b167b 100644 --- a/mozilla/layout/generic/nsTextFrameThebes.cpp +++ b/mozilla/layout/generic/nsTextFrameThebes.cpp @@ -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 && diff --git a/mozilla/layout/reftests/bugs/reftest.list b/mozilla/layout/reftests/bugs/reftest.list index f4dbcdd251e..0aba3736e59 100644 --- a/mozilla/layout/reftests/bugs/reftest.list +++ b/mozilla/layout/reftests/bugs/reftest.list @@ -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