зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2d63aab13e
Коммит
314e952d65
|
@ -8027,10 +8027,11 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer,
|
||||||
// Removing the letterframes messes around with the frame tree, removing
|
// Removing the letterframes messes around with the frame tree, removing
|
||||||
// and creating frames. We need to reget our prevsibling.
|
// and creating frames. We need to reget our prevsibling.
|
||||||
ChildIterator::Init(container, &first, &last);
|
ChildIterator::Init(container, &first, &last);
|
||||||
if (container == aContainer && !last.XBLInvolved()) {
|
if (last.XBLInvolved() || container != aContainer) {
|
||||||
last.seek(aIndexInContainer);
|
|
||||||
} else {
|
|
||||||
last.seek(aChild);
|
last.seek(aChild);
|
||||||
|
} else if (aIndexInContainer != -1) {
|
||||||
|
last.seek(aIndexInContainer);
|
||||||
|
NS_ASSERTION(*iter == aChild, "Someone screwed up the indexing");
|
||||||
}
|
}
|
||||||
|
|
||||||
prevSibling = FindPreviousSibling(first, last);
|
prevSibling = FindPreviousSibling(first, last);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче