Don't assume that GetPrimaryFrameFor actually works correctly. Bug 403245, r+sr+a=roc

This commit is contained in:
bzbarsky%mit.edu 2007-11-12 00:47:50 +00:00
Родитель 9a3fc53371
Коммит 85a08529f5
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -8414,8 +8414,9 @@ nsCSSFrameConstructor::FindFrameForContentSibling(nsIContent* aContent,
sibling = placeholderFrame;
}
// The frame we have now should never be a continuation
NS_ASSERTION(!sibling->GetPrevContinuation(), "How did that happen?");
// GetPrimaryFrameFor can unfortunately return a non-primary frame
// for a textnode if we have a floating first-letter.
sibling = sibling->GetFirstContinuation();
if (aPrevSibling) {
// The frame may be a special frame (a split inline frame that