Introduced an infinite loop (sigh). Fixing the problem.

This commit is contained in:
hyatt%netscape.com 1999-07-21 00:11:23 +00:00
Родитель 27f2d89ea5
Коммит b817087e8e
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -4131,7 +4131,7 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;
@ -4348,7 +4348,7 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;
@ -4668,7 +4668,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;

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

@ -4131,7 +4131,7 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;
@ -4348,7 +4348,7 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;
@ -4668,7 +4668,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
nsCOMPtr<nsIContent> parent = dont_QueryInterface(aContainer);
nsCOMPtr<nsIContent> child = dont_QueryInterface(aContainer);
while (parent) {
aContainer->GetParent(*getter_AddRefs(parent));
child->GetParent(*getter_AddRefs(parent));
parent->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::tree)
break;