Bug 477333. Make sure to skip over editor's bogus anon content when dealing with first-letter too. r+sr=dbaron

This commit is contained in:
Boris Zbarsky 2009-02-10 12:08:12 -05:00
Родитель 2d63aab13e
Коммит 314e952d65
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -8027,10 +8027,11 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer,
// Removing the letterframes messes around with the frame tree, removing
// and creating frames. We need to reget our prevsibling.
ChildIterator::Init(container, &first, &last);
if (container == aContainer && !last.XBLInvolved()) {
last.seek(aIndexInContainer);
} else {
if (last.XBLInvolved() || container != aContainer) {
last.seek(aChild);
} else if (aIndexInContainer != -1) {
last.seek(aIndexInContainer);
NS_ASSERTION(*iter == aChild, "Someone screwed up the indexing");
}
prevSibling = FindPreviousSibling(first, last);