Bug 538935. A span should be considered non-empty (for the purposes of deciding whether stuff after it is 'at the beginning of the line') only if it contains non-empty content. r=dbaron

This commit is contained in:
Robert O'Callahan
2010-02-02 12:18:57 +13:00
parent 7754d9a595
commit 4581dfcb42
4 changed files with 34 additions and 1 deletions

View File

@@ -933,7 +933,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
pfd->SetFlag(PFD_ISLETTERFRAME, PR_TRUE);
}
if (pfd->mSpan) {
isEmpty = !pfd->mSpan->mHasNonemptyContent && pfd->mFrame->IsSelfEmpty();
isEmpty = !pfd->mSpan->mHasNonemptyContent;
} else {
isEmpty = pfd->mFrame->IsEmpty();
}