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

This commit is contained in:
bzbarsky@mit.edu 2007-11-11 16:47:50 -08:00
Родитель bcc81a3458
Коммит 0b3d9907c6
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