Bug 262403. Don't do a line break just because a float was broken across pages. Also, squash some assertions while printing. r+sr=dbaron

This commit is contained in:
roc+@cs.cmu.edu
2005-03-24 01:15:07 +00:00
parent 110f34962f
commit e7a9ada311
2 changed files with 6 additions and 3 deletions

View File

@@ -337,9 +337,10 @@ nsLayoutUtils::FindSiblingViewFor(nsIView* aParentView, nsIFrame* aFrame) {
}
NS_ASSERTION(f, "Can't find a frame anywhere!");
}
if (f && CompareTreePosition(aFrame->GetContent(),
f->GetContent(), parentViewContent) > 0) {
// aFrame's content is after f's content, so put our view before f's view
if (!f || !aFrame->GetContent() || !f->GetContent() ||
CompareTreePosition(aFrame->GetContent(), f->GetContent(), parentViewContent) > 0) {
// aFrame's content is after f's content (or we just don't know),
// so put our view before f's view
return insertBefore;
}
}