Improves linebreak behavior at inter-tag boundaries, patch by Hideo Saito <saito@densan.co.jp>, r+sr=rbs

git-svn-id: svn://10.0.0.236/trunk@164020 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2004-10-19 07:12:55 +00:00
parent 09ee05ee41
commit c54256c90a
4 changed files with 14 additions and 6 deletions

View File

@@ -4584,7 +4584,7 @@ nsTextFrame::MeasureText(nsPresContext* aPresContext,
aTs.mNormalFont->GetMaxDescent(aTextData.mDescent);
}
PRBool firstWordDone = PR_FALSE;
for (;;firstThing = PR_FALSE) {
for (;;) {
#ifdef IBMBIDI
if (nextBidi && (mContentLength <= 0) ) {
if (textRun.IsBuffering()) {
@@ -4690,6 +4690,7 @@ nsTextFrame::MeasureText(nsPresContext* aPresContext,
mState |= TEXT_SKIP_LEADING_WS;
continue;
}
firstThing = PR_FALSE;
// NOTE: Even if the textRun absorbs the whitespace below, we still
// want to remember that we're breakable.
@@ -4746,6 +4747,7 @@ nsTextFrame::MeasureText(nsPresContext* aPresContext,
} //(aTextData.mMeasureText)
}
else {
firstThing = PR_FALSE;
aTextData.mSkipWhitespace = PR_FALSE;
if (aTextData.mFirstLetterOK) {