зеркало из https://github.com/mozilla/pjs.git
Don't assume that GetPrimaryFrameFor actually works correctly. Bug 403245, r+sr+a=roc
This commit is contained in:
Родитель
9a3fc53371
Коммит
85a08529f5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче