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

@@ -1482,8 +1482,10 @@ nsLineLayout::PlaceFrame(PerFrameData* pfd, nsHTMLReflowMetrics& aMetrics)
SetFlag(LL_ENDSINWHITESPACE, PR_FALSE);
}
// Count the number of frames on the line...
mTotalPlacedFrames++;
// Count the number of non-empty frames on the line...
if (!emptyFrame) {
mTotalPlacedFrames++;
}
if (psd->mX != psd->mLeftEdge || pfd->mBounds.x != psd->mLeftEdge) {
// As soon as a frame placed on the line advances an X coordinate
// of any span we can no longer place a float on the line.